1616 PR :
1717 if : github.event_name == 'pull_request'
1818 name : Check PR Title
19- runs-on : ubuntu-latest
19+ runs-on : formance-runner
2020 permissions :
2121 statuses : write
2222 steps :
2525 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
2626
2727 Dirty :
28- runs-on : " ubuntu-latest "
28+ runs-on : " formance-runner "
2929 steps :
3030 - uses : ' actions/checkout@v4'
3131 with :
3535 with :
3636 token : ${{ secrets.NUMARY_GITHUB_TOKEN }}
3737 - run : >
38- earthly
39- --allow-privileged
40- --secret SPEAKEASY_API_KEY=$SPEAKEASY_API_KEY
41- ${{ contains(github.event.pull_request.labels.*.name, 'no-cache') && '--no-cache' || '' }}
42- +pre-commit
38+ /nix/var/nix/profiles/default/bin/nix --extra-experimental-features "nix-command" --extra-experimental-features "flakes"
39+ develop --impure --command just pre-commit
4340 env:
4441 SPEAKEASY_API_KEY: ${{ secrets.SPEAKEASY_API_KEY }}
4542 - name : Get changed files
5451 fi
5552
5653 Tests :
57- runs-on : " ubuntu-latest "
54+ runs-on : " formance-runner "
5855 needs :
5956 - Dirty
6057 steps :
@@ -66,17 +63,13 @@ jobs:
6663 with :
6764 token : ${{ secrets.NUMARY_GITHUB_TOKEN }}
6865 - run : >
69- earthly
70- --no-output
71- --allow-privileged
72- --secret SPEAKEASY_API_KEY=$SPEAKEASY_API_KEY
73- ${{ contains(github.event.pull_request.labels.*.name, 'no-cache') && '--no-cache' || '' }}
74- +tests
66+ /nix/var/nix/profiles/default/bin/nix --extra-experimental-features "nix-command" --extra-experimental-features "flakes"
67+ develop --impure --command just tests
7568 env:
7669 SPEAKEASY_API_KEY: ${{ secrets.SPEAKEASY_API_KEY }}
7770
7871 GoReleaser :
79- runs-on : " ubuntu-latest "
72+ runs-on : " formance-runner "
8073 if : contains(github.event.pull_request.labels.*.name, 'build-images') || github.ref == 'refs/heads/main' || github.event_name == 'merge_group'
8174 needs :
8275 - Dirty
@@ -99,23 +92,16 @@ jobs:
9992 username : " NumaryBot"
10093 password : ${{ secrets.NUMARY_GITHUB_TOKEN }}
10194 - run : >
102- earthly
103- --no-output
104- --allow-privileged
105- --secret SPEAKEASY_API_KEY=$SPEAKEASY_API_KEY
106- --secret GITHUB_TOKEN=$GITHUB_TOKEN
107- --secret FURY_TOKEN=$FURY_TOKEN
108- --secret GORELEASER_KEY=$GORELEASER_KEY
109- ${{ contains(github.event.pull_request.labels.*.name, 'no-cache') && '--no-cache' || '' }}
110- +release --mode=ci
95+ /nix/var/nix/profiles/default/bin/nix --extra-experimental-features "nix-command" --extra-experimental-features "flakes"
96+ develop --impure --command just release-ci
11197 env:
11298 GITHUB_TOKEN: ${{ secrets.NUMARY_GITHUB_TOKEN }}
11399 SPEAKEASY_API_KEY: ${{ secrets.SPEAKEASY_API_KEY }}
114100 FURY_TOKEN: ${{ secrets.FURY_TOKEN }}
115101 GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
116102
117103 Deploy :
118- runs-on : " ubuntu-latest "
104+ runs-on : " formance-runner "
119105 if : github.ref == 'refs/heads/main'
120106 environment : staging
121107 needs :
0 commit comments