-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (30 loc) · 808 Bytes
/
tests.yml
File metadata and controls
38 lines (30 loc) · 808 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
name: Tests
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
env:
GO_VERSION: "1.24.3"
jobs:
test:
name: Run Tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Go with private modules
uses: ./.github/actions/setup-go-private
with:
go-version: ${{ env.GO_VERSION }}
gh-token: ${{ secrets.GH_PAT }}
- name: Install dependencies
run: go mod download
- name: Run tests
run: make test
build:
uses: ./.github/workflows/docker.yml
with:
push-image: ${{ github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master') }}
secrets:
GH_PAT: ${{ secrets.GH_PAT }}