mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-12-02 11:17:33 -06:00
33 lines
824 B
YAML
33 lines
824 B
YAML
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
|