Skip to content

Commit

Permalink
Reorganise GH workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
andreabedini committed Sep 14, 2023
1 parent c11fe72 commit 1c06741
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 98 deletions.
14 changes: 0 additions & 14 deletions .github/workflows/format.yaml

This file was deleted.

81 changes: 0 additions & 81 deletions .github/workflows/haskell.yml

This file was deleted.

21 changes: 21 additions & 0 deletions .github/workflows/nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,27 @@ on:
pull_request:

jobs:
format:
runs-on:
- ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v4
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

- uses: DeterminateSystems/magic-nix-cache-action@v2

- uses: cachix/cachix-action@v12
with:
name: foliage
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'

- run: nix develop --accept-flake-config --command fourmolu -m check .

build:
runs-on:
- ubuntu-latest
Expand Down
15 changes: 12 additions & 3 deletions .github/workflows/update-flake-lock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,26 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Install Nix
uses: cachix/install-nix-action@v19
uses: DeterminateSystems/nix-installer-action@v4
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

- uses: DeterminateSystems/magic-nix-cache-action@v2

- uses: cachix/cachix-action@v12
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
name: foliage
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'

- name: Update flake.lock
uses: DeterminateSystems/update-flake-lock@v16
with:
pr-title: "Update flake.lock" # Title of PR to be created
pr-labels: | # Labels to be set on the PR
dependencies
automated
- name: Print PR number
run: echo Opened pull request ${{ steps.update.outputs.pull-request-number }}.

0 comments on commit 1c06741

Please sign in to comment.