-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (35 loc) · 916 Bytes
/
build.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
name: Build, Test and Lint Armaria
on:
pull_request:
types: [opened, synchronize]
permissions:
contents: read
pull-requests: read
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@v22
- name: Build
run: task build
shell: nix develop --command bash -e {0}
- name: Test
run: task test
shell: nix develop --command bash -e {0}
- name: Lint
run: task lint
shell: nix develop --command bash -e {0}
- name: Vulns
run: task vulns
shell: nix develop --command bash -e {0}
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}