File tree Expand file tree Collapse file tree 6 files changed +37
-71
lines changed
gleam-fullstack/.github/workflows Expand file tree Collapse file tree 6 files changed +37
-71
lines changed Original file line number Diff line number Diff line change 55 push :
66 branches : [main]
77env :
8- CI_NIX_STORE : ~/nix
98 CI_NIX_FLAKE : .#default
109jobs :
1110 lint :
1211 runs-on : ubuntu-latest
1312 steps :
14- - name : Setup Nix
15- uses : cachix/install-nix-action@v26
1613 - name : Checkout
1714 uses : actions/checkout@v4
15+ - name : Setup Nix
16+ uses : DeterminateSystems/nix-installer-action@main
1817 - name : Cache Nix
19- uses : actions/cache@v4
20- with :
21- path : ${{ env.CI_NIX_STORE }}
22- key : ${{ runner.os }}-nix-${{ hashFiles('flake.nix', 'flake.lock') }}
18+ uses : DeterminateSystems/magic-nix-cache-action@main
2319 - name : Lint
2420 run : |
25- nix --store ${{ env.CI_NIX_STORE }} \
26- develop ${{ env.CI_NIX_FLAKE }} --command \
21+ nix develop ${{ env.CI_NIX_FLAKE }} --command \
2722 editorconfig-checker && echo "ok"
Original file line number Diff line number Diff line change 55 push :
66 branches : [main]
77env :
8- CI_NIX_STORE : ~/nix
98 CI_NIX_FLAKE : .#default
109jobs :
1110 lint :
1211 runs-on : ubuntu-latest
1312 steps :
14- - name : Setup Nix
15- uses : cachix/install-nix-action@v26
1613 - name : Checkout
1714 uses : actions/checkout@v4
15+ - name : Setup Nix
16+ uses : DeterminateSystems/nix-installer-action@main
1817 - name : Cache Nix
19- uses : actions/cache@v4
20- with :
21- path : ${{ env.CI_NIX_STORE }}
22- key : ${{ runner.os }}-nix-${{ hashFiles('flake.nix', 'flake.lock') }}
18+ uses : DeterminateSystems/magic-nix-cache-action@main
2319 - name : Lint
2420 run : |
25- nix --store ${{ env.CI_NIX_STORE }} \
26- develop ${{ env.CI_NIX_FLAKE }} --command \
21+ nix develop ${{ env.CI_NIX_FLAKE }} --command \
2722 editorconfig-checker && echo "ok"
Original file line number Diff line number Diff line change 55 push :
66 branches : [main]
77env :
8- CI_NIX_STORE : ~/nix
98 CI_NIX_FLAKE : .#default
109jobs :
1110 lint :
1211 runs-on : ubuntu-latest
1312 steps :
14- - name : Setup Nix
15- uses : cachix/install-nix-action@v26
1613 - name : Checkout
1714 uses : actions/checkout@v4
15+ - name : Setup Nix
16+ uses : DeterminateSystems/nix-installer-action@main
1817 - name : Cache Nix
19- uses : actions/cache@v4
20- with :
21- path : ${{ env.CI_NIX_STORE }}
22- key : ${{ runner.os }}-nix-${{ hashFiles('flake.nix', 'flake.lock') }}
18+ uses : DeterminateSystems/magic-nix-cache-action@main
2319 - name : Lint
2420 run : |
25- nix --store ${{ env.CI_NIX_STORE }} \
26- develop ${{ env.CI_NIX_FLAKE }} --command \
21+ nix develop ${{ env.CI_NIX_FLAKE }} --command \
2722 editorconfig-checker && echo "ok"
Original file line number Diff line number Diff line change 55 push :
66 branches : [main]
77env :
8- CI_NIX_STORE : ~/nix
98 CI_NIX_FLAKE : .#default
109jobs :
11- test :
10+ lint :
1211 runs-on : ubuntu-latest
1312 steps :
13+ - name : Checkout
14+ uses : actions/checkout@v4
1415 - name : Setup Nix
15- uses : cachix/install-nix-action@v26
16+ uses : DeterminateSystems/nix-installer-action@main
17+ - name : Cache Nix
18+ uses : DeterminateSystems/magic-nix-cache-action@main
19+ - name : Lint
20+ run : |
21+ nix develop ${{ env.CI_NIX_FLAKE }} --command \
22+ editorconfig-checker && echo "ok"
23+ test :
24+ runs-on : ubuntu-latest
25+ steps :
1626 - name : Checkout
1727 uses : actions/checkout@v4
28+ - name : Setup Nix
29+ uses : DeterminateSystems/nix-installer-action@main
1830 - name : Cache Nix
19- uses : actions/cache@v4
20- with :
21- path : ${{ env.CI_NIX_STORE }}
22- key : ${{ runner.os }}-nix-${{ hashFiles('flake.nix', 'flake.lock') }}
31+ uses : DeterminateSystems/magic-nix-cache-action@main
2332 - name : Cache Go
2433 uses : actions/cache@v4
2534 with :
2938 ~/go/pkg/mod
3039 - name : Test
3140 run : |
32- nix --store ${{ env.CI_NIX_STORE }} \
33- develop ${{ env.CI_NIX_FLAKE }} --command \
41+ nix develop ${{ env.CI_NIX_FLAKE }} --command \
3442 go test -v -cover -race ./...
35- lint :
36- runs-on : ubuntu-latest
37- steps :
38- - name : Setup Nix
39- uses : cachix/install-nix-action@v26
40- - name : Checkout
41- uses : actions/checkout@v4
42- - name : Cache Nix
43- uses : actions/cache@v4
44- with :
45- path : ${{ env.CI_NIX_STORE }}
46- key : ${{ runner.os }}-nix-${{ hashFiles('flake.nix', 'flake.lock') }}
47- - name : Lint
48- run : |
49- nix --store ${{ env.CI_NIX_STORE }} \
50- develop ${{ env.CI_NIX_FLAKE }} --command \
51- editorconfig-checker && echo "ok"
Original file line number Diff line number Diff line change 55 push :
66 branches : [main]
77env :
8- CI_NIX_STORE : ~/nix
98 CI_NIX_FLAKE : .#default
109jobs :
1110 lint :
1211 runs-on : ubuntu-latest
1312 steps :
14- - name : Setup Nix
15- uses : cachix/install-nix-action@v26
1613 - name : Checkout
1714 uses : actions/checkout@v4
15+ - name : Setup Nix
16+ uses : DeterminateSystems/nix-installer-action@main
1817 - name : Cache Nix
19- uses : actions/cache@v4
20- with :
21- path : ${{ env.CI_NIX_STORE }}
22- key : ${{ runner.os }}-nix-${{ hashFiles('flake.nix', 'flake.lock') }}
18+ uses : DeterminateSystems/magic-nix-cache-action@main
2319 - name : Lint
2420 run : |
25- nix --store ${{ env.CI_NIX_STORE }} \
26- develop ${{ env.CI_NIX_FLAKE }} --command \
21+ nix develop ${{ env.CI_NIX_FLAKE }} --command \
2722 editorconfig-checker && echo "ok"
Original file line number Diff line number Diff line change 55 push :
66 branches : [main]
77env :
8- CI_NIX_STORE : ~/nix
98 CI_NIX_FLAKE : .#default
109jobs :
1110 lint :
1211 runs-on : ubuntu-latest
1312 steps :
14- - name : Setup Nix
15- uses : cachix/install-nix-action@v26
1613 - name : Checkout
1714 uses : actions/checkout@v4
15+ - name : Setup Nix
16+ uses : DeterminateSystems/nix-installer-action@main
1817 - name : Cache Nix
19- uses : actions/cache@v4
20- with :
21- path : ${{ env.CI_NIX_STORE }}
22- key : ${{ runner.os }}-nix-${{ hashFiles('flake.nix', 'flake.lock') }}
18+ uses : DeterminateSystems/magic-nix-cache-action@main
2319 - name : Lint
2420 run : |
25- nix --store ${{ env.CI_NIX_STORE }} \
26- develop ${{ env.CI_NIX_FLAKE }} --command \
21+ nix develop ${{ env.CI_NIX_FLAKE }} --command \
2722 editorconfig-checker && echo "ok"
You can’t perform that action at this time.
0 commit comments