Skip to content

feat: Run tests on GitHub #1

feat: Run tests on GitHub

feat: Run tests on GitHub #1

Workflow file for this run

name: test
permissions:
contents: read
on:
push:
branches: [main]
pull_request:
# Spend CI time only on latest ref
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- name: Install Node.js
uses: actions/setup-node@v1
with:
node-version: '12'
- run: npm install
- name: run eslint
run: npm run eslint
test:
steps:

Check failure on line 26 in .github/workflows/test.yaml

View workflow run for this annotation

GitHub Actions / test

Invalid workflow file

The workflow is not valid. .github/workflows/test.yaml (Line: 26, Col: 5): Required property is missing: runs-on
- name: Checkout
uses: actions/checkout@master
- name: Install Node.js
uses: actions/setup-node@v1
with:
node-version: '12'
- run: npm install
- name: run tests
run: npm run test