ci: Split Lint & Style from Test workflow

The Lint & Style job needs to run on all PRs, not only when something "test" related
changes. Otherwise not all workflow, nix or other files are style-checked and linted.
This commit is contained in:
Wolfgang Walther
2024-02-24 20:38:25 +01:00
committed by Wolfgang Walther
parent e6cde92f11
commit d6153be67a
3 changed files with 39 additions and 16 deletions
-16
View File
@@ -30,22 +30,6 @@ concurrency:
cancel-in-progress: true
jobs:
lint-style:
name: Lint & Style
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Nix Environment
uses: ./.github/actions/setup-nix
with:
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
tools: style
- name: Run linter (check locally with `nix-shell --run postgrest-lint`)
run: postgrest-lint
- name: Run style check (auto-format with `nix-shell --run postgrest-style`)
run: postgrest-style-check
coverage:
name: Coverage
runs-on: ubuntu-latest