gha check #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Push checker" | |
# TODO: nixpkgs-fmt --check . | |
on: | |
pull_request: | |
push: | |
jobs: | |
fmt_check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: DeterminateSystems/nix-installer-action@main | |
with: | |
extra-conf: | | |
experimental-features = nix-command flakes | |
access-tokens = github.com=${{ secrets.GH_PAT }} | |
github-token: ${{ secrets.GH_PAT }} | |
- run: ./x fmt --check | |
home_check: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
machine: ["appaquet@mbpapp", "appaquet@deskapp", "appaquet@servapp"] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: DeterminateSystems/nix-installer-action@main | |
with: | |
extra-conf: | | |
experimental-features = nix-command flakes | |
access-tokens = github.com=${{ secrets.GH_PAT }} | |
github-token: ${{ secrets.GH_PAT }} | |
- run: MACHINE_KEY="${{ matrix.machine }}" ./x home check | |
darwin_check: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
machine: ["appaquet@mbpapp"] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: DeterminateSystems/nix-installer-action@main | |
with: | |
extra-conf: | | |
experimental-features = nix-command flakes | |
access-tokens = github.com=${{ secrets.GH_PAT }} | |
github-token: ${{ secrets.GH_PAT }} | |
- run: MACHINE_KEY="${{ matrix.machine }}" ./x darwin check | |
nixos_check: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
machine: ["appaquet@deskapp"] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: DeterminateSystems/nix-installer-action@main | |
with: | |
extra-conf: | | |
experimental-features = nix-command flakes | |
access-tokens = github.com=${{ secrets.GH_PAT }} | |
github-token: ${{ secrets.GH_PAT }} | |
- run: MACHINE_KEY="${{ matrix.machine }}" ./x nixos check |