ci.yml

 1name: Go CI
 2
 3on:
 4  push:
 5    branches: [master]
 6  pull_request:
 7    branches: [master]
 8
 9jobs:
10  build:
11    runs-on: ${{ matrix.os }}
12    strategy:
13      matrix:
14        os: [ubuntu-latest, windows-latest, macos-latest]
15    steps:
16      - uses: actions/checkout@v6
17
18      - name: Set up Go
19        uses: actions/setup-go@v6
20        with:
21          go-version: "1.26.1"
22
23      - name: Install system dependencies
24        if: runner.os == 'Linux'
25        run: sudo apt-get update && sudo apt-get install -y libpcsclite-dev
26
27      - name: Tidy modules
28        run: go mod tidy
29
30      - name: Test
31        run: go test -v ./...
32
33      - name: Build
34        run: go build -v ./...