gave steps more descriptive names

This commit is contained in:
Jack Hodgkinson 2022-02-14 11:47:24 +00:00
parent 57ef1faa63
commit e55168fce8

View file

@ -21,42 +21,42 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/cache@v2.1.4
name: Cache Stack
name: Add Stack files to cache.
with:
path: ~/.stack
key: ${{ runner.os }}-stack-formatting
restore-keys: ${{ runner.os }}-stack-
- run: stack install fourmolu
name: Setup
name: Install fourmolu.
- run: ./.github/format.sh
name: "Run fourmolu"
name: Run fourmolu.
lint:
run-linter:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2.1.4
name: Cache Stack
name: Add Stack files to Cache.
with:
path: ~/.stack
key: ${{ runner.os }}-stack-lint
restore-keys: ${{ runner.os }}-stack-
- run: stack install hlint
name: Setup
name: Install hlint
- run: ~/.local/bin/hlint $(git ls-tree -r HEAD --full-tree --name-only | grep -E '.*\.hs')
name: Lint
name: Run hlint.
build:
check-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: cachix/install-nix-action@v13
name: Set up Nix and IOHK cache
name: Set up Nix and IOHK caches.
with:
nix_path: nixpkgs=channel:nixos-unstable
extra_nix_config: |
@ -66,7 +66,7 @@ jobs:
with:
name: mlabs
authToken: ${{ secrets.CACHIX_KEY }}
- name: Cache cabal folder
- name: Add cabal folder to cache.
id: cabal
uses: actions/cache@v2.1.4
with:
@ -75,5 +75,5 @@ jobs:
~/.cabal/store
dist-newstyle
key: ${{ runner.os }}-cabal
- name: Build the full ci derivation
- name: Build the project.
run: nix build .#check.x86_64-linux --extra-experimental-features nix-command --extra-experimental-features flakes