Skip to content

Commit

Permalink
ci: run all flake checks
Browse files Browse the repository at this point in the history
Adds *fake* hydra-like CI tests for the flake checks.

Signed-off-by: Christina Sørensen <[email protected]>
  • Loading branch information
cafkafk committed Sep 17, 2024
1 parent e0434de commit 45ea1c5
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 17 deletions.
17 changes: 0 additions & 17 deletions .github/workflows/build.yaml

This file was deleted.

45 changes: 45 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: "Flake Checks"
on:
push:
branches:
- "master"
pull_request:
branches:
- "master"
jobs:
linux:
name: Linux ${{ matrix.systems }} ${{ matrix.checks }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
checks: [build, formatting, pre-commit-check, vm_integration_tests]
os: [ubuntu-latest]
systems: ["x86_64-linux"]
# In a better world ; _ ;
# systems: ["x86_64-linux", "aarch64-linux","x86_64-darwin", "aarch64-darwin"]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- name: Setup Nix cache
uses: DeterminateSystems/magic-nix-cache-action@main
- name: Nix Flake Check
run: nix build ./#checks.${{ matrix.systems }}.${{ matrix.checks }} -L
macos:
name: MacOS ${{ matrix.systems }} ${{ matrix.checks }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
checks: [build, formatting, pre-commit-check, vm_integration_tests]
os: [macos-latest]
systems: ["aarch64-darwin"]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- name: Setup Nix cache
uses: DeterminateSystems/magic-nix-cache-action@main
- name: Nix Flake Check
run: nix build ./#checks.${{ matrix.systems }}.${{ matrix.checks }} -L

0 comments on commit 45ea1c5

Please sign in to comment.