mirror of
https://github.com/hashicorp/setup-terraform.git
synced 2025-12-13 07:02:35 +00:00
37 lines
725 B
YAML
37 lines
725 B
YAML
name: 'Continuous Integration'
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
name: Test
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Setup Node.js 12.x
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: '12.x'
|
|
|
|
- name: Install
|
|
run: npm clean-install
|
|
|
|
- name: Verify
|
|
if: runner.os == 'Linux'
|
|
run: |
|
|
npm run build
|
|
# Fail if "npm run build" generated new changes in dist
|
|
git update-index --refresh dist/* && git diff-index --quiet HEAD dist
|
|
|
|
- name: Test
|
|
run: npm test
|