Skip to content

Commit

Permalink
Added github actions CI
Browse files Browse the repository at this point in the history
  • Loading branch information
yawn committed Jun 2, 2022
1 parent c9ee9db commit 201009e
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:

build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macOS-latest, windows-latest ]
steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18

- name: Install dependencies
if: matrix.os == 'ubuntu-latest'
run: sudo apt-get install -qy libpcsclite-dev

- name: Build
run: go build -v ./...

- name: Test
run: go test -coverprofile coverage.txt -covermode atomic -parallel 1 -race -tags ci -v ./...

0 comments on commit 201009e

Please sign in to comment.