blob: b408d4915a8bea452b30926d0c570e60ff2ab4fa [file] [log] [blame] [raw]
name: Compiler Explorer on Windows
on: [ push ]
jobs:
build-and-test:
runs-on: windows-2019
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Use Node.js 14.x
uses: actions/setup-node@v1
with:
node-version: 14.x
- name: Get npm cache directory
id: npm-cache
run: |
echo "::set-output name=dir::$(npm config get cache)"
- uses: actions/cache@v1
with:
path: ${{ steps.npm-cache.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install prerequisites
run: make prereqs
- name: Build and test
run: |
npm run lint
npm run ci-test