diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index be3a9f8..0000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,11 +0,0 @@ -name: "Build" -on: [ "pull_request" ] -jobs: - tests: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: cachix/install-nix-action@v27 - with: - nix_path: nixpkgs=channel:nixos-24.05 - - run: nix --experimental-features "nix-command flakes" flake check diff --git a/.github/workflows/cheks.yml b/.github/workflows/cheks.yml new file mode 100644 index 0000000..85dc3d5 --- /dev/null +++ b/.github/workflows/cheks.yml @@ -0,0 +1,19 @@ +name: "Checks" +on: + push: + branches: + - "main" + pull_request: + branches: + - "main" +jobs: + tests: + runs-on: ubuntu-latest + 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 + - run: nix --experimental-features "nix-command flakes" flake check -L