-
Notifications
You must be signed in to change notification settings - Fork 17
44 lines (37 loc) · 1.02 KB
/
test.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
name: Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
name: Run tests with Go ${{ matrix.gov }} on ${{ matrix.os}}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
gov: [1.23]
steps:
- uses: actions/checkout@v2
- name: Set up Go ${{ matrix.gov }}
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.gov }}
id: go
# Install required packages including git
- name: Install required packages
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y ca-certificates git
sudo update-ca-certificates
- name: Get dependencies
run: |
git config --global http.sslVerify true
go mod download
- name: Run tests
run: go test -v
env:
TEST_DEEPSEEK_API_KEY: ${{ secrets.TEST_DEEPSEEK_API_KEY }}
TEST_TIMEOUT: ${{ secrets.TEST_TIMEOUT }}