style #39
This file contains hidden or 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 | |
# CI workflow which formats and lints code on push (yay) | |
on: | |
pull_request: | |
branches: ["*"] | |
push: | |
branches: ["main"] | |
merge_group: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup | |
uses: ./tooling/setup | |
- name: Lint | |
run: npm run lint | |
format: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout/@v4 | |
- name: Setup | |
uses: ./tooling/setup | |
- name: Format | |
run: npm run format | |