Skip to content

Fix Windows compatibility (#27) #54

Fix Windows compatibility (#27)

Fix Windows compatibility (#27) #54

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
# Automatically cancel in-progress actions on the same branch
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
test:
strategy:
matrix:
node: [18.x]
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js 16.x
uses: actions/setup-node@v2
with:
node-version: 16.x
- name: Cache node_modules
uses: actions/cache@v2
with:
path: ~/.npm
key: node-${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: node-${{ matrix.node }}-
- name: Install Dependencies
run: npm ci
- name: Test
run: npm t