Refactor configuration to separate lint and lint+fix scripts. #6
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: safe-modules-allowance | |
on: | |
push: | |
paths: | |
- 'modules/allowances/**' | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v3 | |
with: | |
version: 9 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
cache: pnpm | |
- run: | | |
pnpm install | |
pnpm run --filter "@safe-global/safe-allowance-module" coverage | |
- uses: coverallsapp/github-action@master | |
with: | |
path-to-lcov: modules/allowances/coverage/lcov.info | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v3 | |
with: | |
version: 9 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
cache: pnpm | |
- run: | | |
pnpm install | |
pnpm run --filter "@safe-global/safe-allowance-module" lint | |
pnpm run --filter "@safe-global/safe-allowance-module" fmt:check | |
pnpm run --filter "@safe-global/safe-allowance-module" build |