ci: update actions configuration #165
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: | |
merge_group: | |
types: [checks_requested] | |
push: | |
branches: | |
- main | |
- bugfixes | |
- develop | |
pull_request: | |
branches: | |
- main | |
- bugfixes | |
- develop | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
check-typos: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout π | |
uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- name: Run typos checker | |
uses: crate-ci/typos@master | |
ci: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout π | |
uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v4 | |
- name: Setup node env π | |
uses: actions/setup-node@v4 | |
with: | |
cache: pnpm | |
node-version-file: .nvmrc | |
- name: Install dependencies π¨π»βπ» | |
run: pnpm install --frozen-lockfile | |
- name: Run linter π | |
run: pnpm run lint | |
- name: Build | |
run: pnpm run build |