1
1
mirror of https://github.com/the-nix-way/dev-templates synced 2025-07-25 03:26:00 +02:00
github.com_the-nix-way_dev-.../.github/workflows/ci.yml
2025-05-24 16:57:30 -04:00

45 lines
1.1 KiB
YAML

name: Run checks and Determinate CI
on:
pull_request:
workflow_dispatch:
push:
branches:
- main
tags:
- v?[0-9]+.[0-9]+.[0-9]+*
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
check:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/flake-checker-action@main
with:
fail-mode: true
- uses: DeterminateSystems/determinate-nix-action@main
- uses: DeterminateSystems/flakehub-cache-action@main
- name: Check formatting
run: |
nix develop --command nixpkgs-fmt --check $(git ls-files '*.nix')
- name: Flake check
run: nix develop --command check
- name: Build all
run: nix develop --command build
determinate-ci:
needs: check
uses: DeterminateSystems/ci/.github/workflows/workflow.yml@main
permissions:
id-token: write
contents: read
with:
visibility: public