lint fixes #209
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'CI' | |
on: | |
push: | |
branches: | |
- '**' | |
pull_request: | |
branches: | |
- main | |
- develop | |
permissions: | |
contents: read # to fetch code (actions/checkout) | |
jobs: | |
lint: | |
strategy: | |
matrix: | |
node-version: | |
- '20' | |
platform: | |
- ubuntu-latest | |
name: Lint | |
runs-on: ${{ matrix.platform }} | |
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Enable corepack | |
run: corepack enable | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'yarn' | |
cache-dependency-path: 'yarn.lock' | |
- name: Install dependencies | |
run: yarn install --immutable | |
- name: Run Yarn CI | |
run: yarn ci | |
- name: Run Security check | |
run: yarn npm audit |