Skip to content

update ci yml

update ci yml #54

Workflow file for this run

name: Spec Test
on:
push
pull_request:

Check failure on line 5 in .github/workflows/spec.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/spec.yml

Invalid workflow file

You have an error in your yaml syntax on line 5
types: [opened, edited]
jobs:
spec:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: main
- uses: actions/setup-node@v1
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- uses: actions/cache@v1
with:
path: node_modules
key: ${{ runner.os }}-node-${{ github.event_name }}-${{ hashFiles('**/package-lock.json') }}
restore-key: ${{ runner.os }}-node-${{ github.event_name }}-
- run: npm i
- run: npm run test