From 26546c734804204567dbe9a64a4ad0ed2cd85b3e Mon Sep 17 00:00:00 2001 From: Daniel Winkler Date: Tue, 26 Aug 2025 13:01:37 +1000 Subject: [PATCH] With PAT all PRs get tested --- .github/workflows/check_pr.yml | 38 ---------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 .github/workflows/check_pr.yml diff --git a/.github/workflows/check_pr.yml b/.github/workflows/check_pr.yml deleted file mode 100644 index ca07feb..0000000 --- a/.github/workflows/check_pr.yml +++ /dev/null @@ -1,38 +0,0 @@ -name: "Test template PR" -on: - workflow_dispatch: # allows manual triggering - pull_request: - types: [opened, synchronize, reopened] - pull_request_target: - types: [opened, synchronize, reopened] -jobs: - tests: - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [ubuntu-latest] - steps: - - uses: actions/checkout@v4 - with: - ref: ${{ github.event.pull_request.head.sha }} - token: ${{ secrets.GITHUB_TOKEN }} - - uses: wimpysworld/nothing-but-nix@main - with: - ️hatchet-protocol: 'carve' - - uses: cachix/install-nix-action@v31 - with: - github_access_token: ${{ secrets.GITHUB_TOKEN }} - - uses: DeterminateSystems/magic-nix-cache-action@main - - run: nix build ./templates/n - - run: nix flake check ./templates/n - - name: Comment on PR (if tests fail) - if: failure() - uses: actions/github-script@main - with: - script: | - github.rest.issues.createComment({ - issue_number: context.issue.number, - owner: context.repo.owner, - repo: context.repo.repo, - body: '❌ Tests failed on this pull request. Please check the workflow logs for details.' - })