Add concurrency in workflows and split check doc #72
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: Checks | |
on: | |
workflow_call: | |
push: | |
branches: [main] | |
pull_request: | |
types: [synchronize, opened, reopened, ready_for_review, converted_to_draft] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
checks: | |
name: Run Checks | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'npm' | |
- name: Install Dependencies | |
run: npm ci --ignore-scripts | |
- name: Prepare nuxt dependencies | |
run: npm run postinstall | |
- name: Check Formatting | |
run: npm run check-formatting | |
- name: Typechecking | |
run: npm run typecheck | |
- name: Lint Styles | |
run: npm run lint:styles | |
- name: Lint | |
run: npm run lint |