generated from tweag/project
-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (39 loc) · 1.03 KB
/
main.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Tests and formatting
on:
push:
branches: [ master ]
tags: [ "*" ]
pull_request:
jobs:
markdown-link-check:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@master
- name: Check links
uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
use-verbose-mode: 'yes'
file-path: './README.md'
formatting:
runs-on: ubuntu-22.04
name: Check formatting
steps:
- uses: actions/[email protected]
- name: Install nix
uses: cachix/install-nix-action@v18
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- run: nix flake check
testing:
runs-on: ubuntu-22.04
name: Run test suites
steps:
- uses: actions/[email protected]
- name: Install nix
uses: cachix/install-nix-action@v18
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- name: Test backends
run: nix develop .#lightweight --command cabal test all