generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 18
53 lines (44 loc) · 1.03 KB
/
ci.yml
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
43
44
45
46
47
48
49
50
51
52
53
name: did-dht-ci
# when:
# - a pull request is opened against main
# - commits are pushed to main
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
# used to run action manually via the UI
workflow_dispatch:
jobs:
vulnerability-scan:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./impl
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.21.3
- name: Install Mage
run: go install github.com/magefile/mage
- name: Check Vulnerabilities
run: mage -v vuln
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./impl
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.21.3
- name: Install Mage
run: go install github.com/magefile/mage
- name: Build
run: mage build
- name: Test
run: mage citest