Skip to content

infra: add test workflow #1

infra: add test workflow

infra: add test workflow #1

Workflow file for this run

name: lint-and-test

Check failure on line 1 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/test.yml

Invalid workflow file

(Line: 3, Col: 4): Unexpected value '', (Line: 5, Col: 1): Unexpected value 'push', (Line: 7, Col: 1): Unexpected value 'branches', (Line: 11, Col: 6): Unexpected value '', (Line: 13, Col: 1): Unexpected value 'lint-and-test'
on:
push:
branches:
- main
jobs:
lint-and-test:
runs-on: ubuntu-latest
name: run testing and linting
steps:
- uses: actions/checkout@v3
- uses: bahmutov/npm-install@v1
- run: npm run lint (Run ESLint)
- run: npm run test (Run Jest)