mirror of
https://github.com/DeterminateSystems/determinate-nix-action.git
synced 2026-07-12 19:03:54 +00:00
31 lines
904 B
YAML
31 lines
904 B
YAML
on:
|
|
pull_request:
|
|
push:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
lints:
|
|
name: Build
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
id-token: "write"
|
|
contents: "read"
|
|
steps:
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
persist-credentials: false
|
|
- uses: ./.
|
|
- run: nix develop -c typos
|
|
if: success() || failure()
|
|
- run: nix develop -c ruff check
|
|
if: success() || failure()
|
|
- run: nix develop -c ruff format --diff
|
|
if: success() || failure()
|
|
- run: nix develop -c shellcheck ./tools/*.sh
|
|
if: success() || failure()
|
|
- name: Regenerate the README to make sure it is unchanged
|
|
run: nix develop -c ./tools/generate.sh
|
|
if: success() || failure()
|
|
- name: Assert no changes were made
|
|
run: git diff --exit-code
|
|
if: success() || failure()
|