Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 12 additions & 13 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ permissions:
contents: read
pull-requests: read

env:
DAGGER_VERSION: "0.20.8"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand All @@ -24,14 +21,15 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install Dagger
uses: dagger/dagger-for-github@v8.2.0
with:
version: ${{ env.DAGGER_VERSION }}
- name: Install Nix
uses: DeterminateSystems/determinate-nix-action@d96678350ffd6a456235832eb11e1c491589b7bb # v3.21.8

- name: Cache Nix store
uses: DeterminateSystems/magic-nix-cache-action@908b263ff629f4cc17666315b7fd3ec127c6244d # v14

- name: Check PR title conformance
run: |
dagger call -m github.com/papercomputeco/daggerverse/ghcontrib \
nix develop --command dagger call -m github.com/papercomputeco/daggerverse/ghcontrib@45e997aec734ec4875ff57bebed2317e1bd49185 \
--token=env://GH_TOKEN \
--repo="${{ github.repository }}" \
check-pull-request \
Expand All @@ -48,14 +46,15 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install Dagger
uses: dagger/dagger-for-github@v8.2.0
with:
version: ${{ env.DAGGER_VERSION }}
- name: Install Nix
uses: DeterminateSystems/determinate-nix-action@d96678350ffd6a456235832eb11e1c491589b7bb # v3.21.8

- name: Cache Nix store
uses: DeterminateSystems/magic-nix-cache-action@908b263ff629f4cc17666315b7fd3ec127c6244d # v14

- name: Check Linear magic word
run: |
dagger call -m github.com/papercomputeco/daggerverse/ghcontrib \
nix develop --command dagger call -m github.com/papercomputeco/daggerverse/ghcontrib@45e997aec734ec4875ff57bebed2317e1bd49185 \
--token=env://GH_TOKEN \
--repo="${{ github.repository }}" \
check-pull-request-linear-magic-word \
Expand Down
21 changes: 21 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
dagger.url = "github:dagger/nix";
dagger.inputs.nixpkgs.follows = "nixpkgs";
};

outputs = { self, nixpkgs, flake-utils }:
outputs = { self, nixpkgs, flake-utils, dagger }:
{
overlays.default = final: prev: {
agentd = final.buildGoModule {
Expand Down Expand Up @@ -85,6 +87,8 @@

# Test tools
hurl

dagger.packages.${system}.dagger
];

shellHook = ''
Expand Down
Loading