-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (36 loc) · 873 Bytes
/
gotest.yml
File metadata and controls
41 lines (36 loc) · 873 Bytes
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
name: Go testing
on:
push:
paths:
- backend/**
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
services:
redis-db:
image: redis:7
ports:
- 6379:6379
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v6
with:
submodules: "true"
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: "1.25"
id: go
- name: Get dependencies
run: |
cd backend && go mod download
- name: Test
run: cd backend && go test -v ./... -timeout=20m -p=1 -count=1
env:
TEST_MNEMONIC: ${{ secrets.TEST_MNEMONIC }}