setup-terraform/.github/workflows/continuous-integration.yml
Rui Chen d5cbd3fe79
Upgrade Nodejs runtime from 12 to 16 (#170)
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>
2022-04-08 08:52:09 -04:00

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