Skip to content

chore: add yarn lint to ci #1

chore: add yarn lint to ci

chore: add yarn lint to ci #1

name: frontend_on_push_branch_execute_ci_cd
on:
push:
branches: [main]
# See https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#onpushpull_requestbranchestags
pull_request:
# Only branches and tags on the base are evaluated
branches: [main]
env:
NODE_VERSION: "20.12"
jobs:
runs-on: ubuntu-latest

Check failure on line 15 in .github/workflows/on_push_branch_execute_ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/on_push_branch_execute_ci.yml

Invalid workflow file

You have an error in your yaml syntax on line 15
yarn_test:
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'yarn'
- run: yarn install --frozen-lockfile
- run: yarn test
yarn_lint:
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'yarn'
- run: yarn install --frozen-lockfile
- run: yarn lint