forked from strangelove-ventures/horcrux
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (37 loc) · 947 Bytes
/
tests.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
name: Run Go Tests
on:
pull_request:
push:
branches:
- main
paths:
- '**.go'
- '**.mod'
- '**.sum'
- '**.proto'
- 'Makefile'
jobs:
test:
name: run tests
runs-on: [self-hosted, linux]
steps:
# Install and setup go
- name: Set up Go 1.19
uses: actions/setup-go@v2
with:
go-version: 1.19
# checkout horcrux
- name: checkout horcrux
uses: actions/checkout@v2
# cleanup docker environment on self-hosted test runner
- name: prepare fresh docker environment
run: |
docker stop $(docker ps -a -q) || true
docker rm -f $(docker ps -a -q) || true
docker network prune -f || true
# make sure proto files are up to date
- name: generate fresh signer proto .go files
run: make signer-proto
# run tests
- name: run horcrux tests
run: make test