Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: CI

on:
push:
branches: [main]
pull_request:
merge_group:
types: [checks_requested]

permissions:
contents: read

jobs:
checks:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
- uses: DeterminateSystems/nix-installer-action@33c9ab3ef95cd57c164d9d6eb1f9a46338538d41 # main
- uses: DeterminateSystems/magic-nix-cache-action@55718cd9ebf1737a061487d5ada21abf31e99a98 # main
- name: Validate commits
if: github.event_name != 'push'
env:
BASE_SHA: ${{ github.event.pull_request.base.sha || github.event.merge_group.base_sha }}
run: >-
nix run --no-update-lock-file .#validate-commits-bootstrap -- "$BASE_SHA..HEAD"
- name: Run flake checks on main
if: github.event_name == 'push'
run: nix flake check --no-update-lock-file --print-build-logs
Comment thread
Mshehu5 marked this conversation as resolved.
Resolved
- name: Build the coverage report
if: github.event_name != 'merge_group'
env:
COVERAGE_COMMIT: ${{ github.event.pull_request.head.sha || github.sha }}
run: |
system=$(nix eval --raw --impure --expr builtins.currentSystem)
nix build --no-update-lock-file ".?rev=$COVERAGE_COMMIT#checks.$system.coverage" --out-link coverage
test -s coverage/cobertura.xml
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/target
/result
Loading
Loading