-
Notifications
You must be signed in to change notification settings - Fork 65
48 lines (47 loc) · 1.02 KB
/
test.yaml
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
name: test
on:
push:
branches:
- master
- v2
pull_request:
branches:
- master
- v2
jobs:
build:
strategy:
matrix:
go-version: [1.21.x, 1.22.x]
name: Linux
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Install libpcsc
run: sudo apt-get install -y libpcsclite-dev pcscd pcsc-tools
- name: Test
run: "go test -C v2 ./..."
build-windows:
strategy:
matrix:
go-version: [1.21.x, 1.22.x]
name: Windows
runs-on: windows-latest
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Test
run: "go build -C v2 ./..."
env:
CGO_ENABLED: 0