Skip to content

Retry workflow with separate jobs #7

Retry workflow with separate jobs

Retry workflow with separate jobs #7

Workflow file for this run

name: Lint and test
on:
push:
branches:
- "main"
pull_request:
jobs:
defaults:
runs-on: ubuntu-latest
install-dependencies:
steps:
- uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 18
cache: yarn
- run: yarn install
run-linter:
needs: install-dependencies
steps:
- uses: actions/checkout@v4
- run: yarn lint
run-linter:

Check failure on line 26 in .github/workflows/check.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/check.yml

Invalid workflow file

You have an error in your yaml syntax on line 26
needs: install-dependencies
steps:
- uses: actions/checkout@v4
- run: yarn prettier --check
run-linter:
needs: install-dependencies
steps:
- uses: actions/checkout@v4
- run: yarn test