mirror of
https://github.com/hashicorp/setup-terraform.git
synced 2025-12-16 08:32:34 +00:00
This updates the NodeJS runtime version from 12 to 16. NodeJS 12 is EOL on 4/30/2022. NodeJS 16 is supported on all Github Actions Runners v2.285.0 or later. Signed-off-by: Rui Chen <rui@chenrui.dev> Co-authored-by: James Pogran <jpogran@outlook.com>
36 lines
700 B
YAML
36 lines
700 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:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Setup Node.js 16.x
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: '16.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
|