.github/workflows/lint.yaml #2
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
on: | |
push: | |
branches: ["main", "dev"] | |
pull_request: | |
branches: ["main", "dev"] | |
workflow_dispatch: | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
environment: build | |
steps: | |
- name: Checkout code ⚙️ | |
uses: actions/checkout@v2 | |
- name: Setup Node.js ⚙️ - Cache dependencies ⚡ - Install dependencies 🔧 | |
uses: ./.github/workflows/setup-node | |
- name: Linting 🔧 | |
run: pnpm run lint |