Skip to content

improve CI

improve CI #19

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
name: Build, lint, and test

Check failure on line 11 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/main.yml (Line: 11, Col: 5): Required property is missing: runs-on
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Use Node
uses: actions/setup-node@v3
with:
node-version: lts
- name: Install deps and build (with cache)
uses: bahmutov/npm-install@v1
- name: Lint
run: yarn lint
- name: Test
run: yarn test --ci --coverage --maxWorkers=2
- name: Build
run: yarn build