Skip to content

Commit 1c06741

Browse files
committed
Reorganise GH workflows
1 parent c11fe72 commit 1c06741

File tree

4 files changed

+33
-98
lines changed

4 files changed

+33
-98
lines changed

.github/workflows/format.yaml

Lines changed: 0 additions & 14 deletions
This file was deleted.

.github/workflows/haskell.yml

Lines changed: 0 additions & 81 deletions
This file was deleted.

.github/workflows/nix.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,27 @@ on:
77
pull_request:
88

99
jobs:
10+
format:
11+
runs-on:
12+
- ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: Install Nix
18+
uses: DeterminateSystems/nix-installer-action@v4
19+
with:
20+
github-token: ${{ secrets.GITHUB_TOKEN }}
21+
22+
- uses: DeterminateSystems/magic-nix-cache-action@v2
23+
24+
- uses: cachix/cachix-action@v12
25+
with:
26+
name: foliage
27+
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
28+
29+
- run: nix develop --accept-flake-config --command fourmolu -m check .
30+
1031
build:
1132
runs-on:
1233
- ubuntu-latest

.github/workflows/update-flake-lock.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,26 @@ jobs:
1111
steps:
1212
- name: Checkout repository
1313
uses: actions/checkout@v3
14+
1415
- name: Install Nix
15-
uses: cachix/install-nix-action@v19
16+
uses: DeterminateSystems/nix-installer-action@v4
17+
with:
18+
github-token: ${{ secrets.GITHUB_TOKEN }}
19+
20+
- uses: DeterminateSystems/magic-nix-cache-action@v2
21+
22+
- uses: cachix/cachix-action@v12
1623
with:
17-
extra_nix_config: |
18-
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
24+
name: foliage
25+
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
26+
1927
- name: Update flake.lock
2028
uses: DeterminateSystems/update-flake-lock@v16
2129
with:
2230
pr-title: "Update flake.lock" # Title of PR to be created
2331
pr-labels: | # Labels to be set on the PR
2432
dependencies
2533
automated
34+
2635
- name: Print PR number
2736
run: echo Opened pull request ${{ steps.update.outputs.pull-request-number }}.

0 commit comments

Comments
 (0)