Add github workflow to proxy tests from sr.ht

This commit is contained in:
Bryan Bennett 2024-01-13 09:32:09 -05:00
parent 6e28820659
commit 443a10d738
No known key found for this signature in database
GPG key ID: EE149E4215408DE9
2 changed files with 30 additions and 0 deletions

16
.github/workflows/repo-lockdown.yml vendored Normal file
View file

@ -0,0 +1,16 @@
name: "Repo Lockdown"
on:
pull_request_target:
types: 'opened'
permissions:
pull-requests: write
jobs:
action:
runs-on: ubuntu-latest
steps:
- uses: dessant/repo-lockdown@v4
with:
pr-comment: "This repo does not accept pull requests as it is a mirror. Please instead submit patches to https://sr.ht/~bryan_bennett/flake_env."

14
.github/workflows/test.yml vendored Normal file
View file

@ -0,0 +1,14 @@
name: "Test"
on:
pull_request:
push:
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v25
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- run: nix build
- run: nix flake check --all-systems --keep-going