diff --git a/.forgejo/workflows/test.yaml b/.forgejo/workflows/test.yaml index f7b16ab..006ee45 100644 --- a/.forgejo/workflows/test.yaml +++ b/.forgejo/workflows/test.yaml @@ -1,13 +1,45 @@ -on: [push] +on: + push: + branches: [main] + pull_request: + types: [opened, synchronize, reopened] jobs: + ## NixOS configurations + + nixosConfiguration-all: + runs-on: native + steps: + - uses: actions/checkout@v4 + - run: nix build .#nixosConfigurations.all.config.system.build.toplevel + + nixosConfiguration-mastodon: + runs-on: native + steps: + - uses: actions/checkout@v4 + - run: nix build .#nixosConfigurations.mastodon.config.system.build.toplevel + + nixosConfiguration-peertube: + runs-on: native + steps: + - uses: actions/checkout@v4 + - run: nix build .#nixosConfigurations.peertube.config.system.build.toplevel + nixosConfiguration-pixelfed: runs-on: native steps: - uses: actions/checkout@v4 - run: nix build .#nixosConfigurations.pixelfed.config.system.build.toplevel + ## Checks + + check-other-pixelfed-garage-fixme: + runs-on: native + steps: + - uses: actions/checkout@v4 + - run: nix build .#checks.x86_64-linux.pixelfed-garage -L + check-pixelfed-garage: runs-on: native steps: