-
Notifications
You must be signed in to change notification settings - Fork 183
38 lines (33 loc) · 788 Bytes
/
test.yml
File metadata and controls
38 lines (33 loc) · 788 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
---
on: [push, pull_request]
name: Test
permissions:
contents: read
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: '1.21.3'
- name: Check out code
uses: actions/checkout@v2
- name: Get full repo history
run: git fetch --prune --unshallow --tags
- name: Download dependencies
shell: bash
run: go mod download
- name: Build
shell: bash
run: |
mkdir -p bin
go build -o bin .
ls -la bin
- name: Test
shell: bash
run: go test -race -timeout 60s ./...