Skip to content

Commit

Permalink
Update ci.yml (#286)
Browse files Browse the repository at this point in the history
Expand matrix to 3 os x 3 go versions.

closes #203
  • Loading branch information
x448 authored Jun 3, 2021
1 parent 3444832 commit ffaad45
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# GitHub Actions - CI for Go to build & test. See ci-go-cover.yml and linters.yml for code coverage and linters.
# GitHub Actions - CI for Go to build & test. See ci-go-cover.yml and safer-golangci-lint.yml for more.
# https://github.com/fxamacker/cbor/workflows/ci.yml
name: ci
on: [push]
Expand All @@ -10,17 +10,27 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
os: [macos-latest, ubuntu-latest, windows-latest]
go-version: [1.14.x, 1.15.x, 1.16.x]

steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}

- name: Checkout code
uses: actions/checkout@v1
uses: actions/checkout@v2
with:
fetch-depth: 1

- name: Get dependencies
run: go get -v -t -d ./...

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

- name: Run tests
run: |
go version
go test -short -race -v ./...
go test -race -v ./...

0 comments on commit ffaad45

Please sign in to comment.