blob: dc4480ca34a7820fc1c03175761764494685b730 [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 12.x
uses: actions/setup-node@v1
with:
node-version: 12.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