-
-
Notifications
You must be signed in to change notification settings - Fork 3
111 lines (104 loc) · 2.81 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
name: 'test'
on:
push:
pull_request:
paths: ['**.go', 'go.mod', '.github/workflows/*']
jobs:
linux:
name: 'test (linux)'
runs-on: 'ubuntu-latest'
steps:
- uses: 'actions/checkout@v4'
- uses: 'WillAbides/setup-go-faster@v1'
with: {go-version: '1.22'}
- name: 'test (linux)'
run: 'go test ./...'
windows:
name: 'test (windows)'
runs-on: 'windows-latest'
steps:
- uses: 'actions/checkout@v4'
- uses: 'WillAbides/setup-go-faster@v1'
with: {go-version: '1.22'}
- name: 'test (windows)'
run: 'go test ./...'
macos:
name: 'test (macos)'
# TODO: if if I use macos-latest (14, on ARM) it will exit with "signal:
# killed" after about ~3.5 minutes, on different tests.
#
# I don't know if this is a macOS 14 or ARM problem (my VM is an amd64 macOS
# 13), but seems odd it would be a problem in elles(?)
runs-on: 'macos-13'
steps:
- uses: 'actions/checkout@v4'
- uses: 'WillAbides/setup-go-faster@v1'
with: {go-version: '1.22'}
- name: 'test (macos)'
run: 'go test ./...'
freebsd:
name: 'test (freebsd)'
runs-on: 'ubuntu-latest'
steps:
- uses: 'actions/checkout@v4'
- name: 'test (freebsd)'
id: 'freebsd'
uses: 'vmactions/freebsd-vm@v1'
with:
prepare: |
pkg install -y go122
pw user add -n action -m
run: |
echo 'XXXXXX'
go version
su action -c 'go122 test ./...'
openbsd:
name: 'test (openbsd)'
runs-on: 'ubuntu-latest'
steps:
- uses: 'actions/checkout@v4'
- name: 'test (openbsd)'
id: 'openbsd'
uses: 'vmactions/openbsd-vm@v1'
with:
prepare: |
useradd -mG wheel action
pkg_add go
run: |
echo 'XXXXXX'
go version
su action -c 'go test ./...'
netbsd:
name: 'test (netbsd)'
runs-on: 'ubuntu-latest'
steps:
- uses: 'actions/checkout@v4'
- name: 'test (netbsd)'
id: 'netbsd'
uses: 'vmactions/netbsd-vm@v1'
with:
prepare: |
useradd -mG wheel action
pkg_add go122
run: |
echo 'XXXXXX'
/usr/pkg/bin/go122 version
su action -c '/usr/pkg/bin/go122 test ./...'
illumos:
name: 'test (illumos)'
runs-on: 'ubuntu-latest'
steps:
- uses: 'actions/checkout@v4'
- name: 'test (illumos)'
id: 'illumos'
uses: 'vmactions/omnios-vm@v1'
with:
prepare: |
useradd action
pkg install go-122
run: |
echo 'XXXXXX'
export GOCACHE=/tmp/go-cache
export GOPATH=/tmp/go-path
go version
su action -c 'go test ./...'