Skip to content

chore: use non-latest tag #1345

chore: use non-latest tag

chore: use non-latest tag #1345

Workflow file for this run

name: test
on: [push, pull_request]
env:
cache-version: v1
jobs:
test:
runs-on: ${{ matrix.os }}
name: Node ${{ matrix.node }} / ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
node: [12.x, 14.x]
steps:
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ env.cache-version }}-${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ env.cache-version }}-${{ runner.os }}-build-${{ env.cache-name }}-
${{ env.cache-version }}-${{ runner.os }}-build-
${{ env.cache-version }}-${{ runner.os }}-
- name: Checkout code
uses: actions/checkout@v3
- name: Run test
run: |
npm ci
npm test