Skip to content

Add ci & format

Add ci & format #1

Workflow file for this run

name: "check"
on:
pull_request:
push:
branches: [ main ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ !startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/main' }}
jobs:
tests:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v25
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Check nix flake
run: |
nix flake check
- name: Check formatting
run: |
nix run nixpkgs#nixpkgs-fmt -- --check .
- name: Build home-manager configuration
run: |
nix build .#homeConfigurations.dmytro.activationPackage
- name: Test build on different systems
run: |
nix build .#homeConfigurations.yourusername.activationPackage --system aarch64-darwin