diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index 488a790..0000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: "CI" -on: - push: - branches: [main] -jobs: - check: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v5 - - uses: cachix/install-nix-action@v31 - with: - extra_nix_config: experimental-features = nix-command flakes pipe-operators - - uses: cachix/cachix-action@v15 - with: - name: sebastian-stork - authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" - - run: nix flake check - deploy: - needs: check - runs-on: ubuntu-latest - permissions: - contents: write - steps: - - uses: actions/checkout@v5 - - run: git push origin HEAD:deploy --force diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..dbba8ab --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,15 @@ +name: "Test" +on: + pull_request: + push: +jobs: + tests: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v5 + - uses: cachix/install-nix-action@v31 + - uses: cachix/cachix-action@v15 + with: + name: sebastian-stork + authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" + - run: nix flake --extra-experimental-features pipe-operators check diff --git a/modules/system/services/comin.nix b/modules/system/services/comin.nix index d7f495f..76bcc79 100644 --- a/modules/system/services/comin.nix +++ b/modules/system/services/comin.nix @@ -15,7 +15,6 @@ remotes = lib.singleton { name = "origin"; url = "https://github.com/SebastianStork/nixos-config.git"; - branches.main.name = "deploy"; }; }; };