-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from qmuntal/dev/qmuntal/fix-ci
Fix CI and add first fuzz test
- Loading branch information
Showing
12 changed files
with
135 additions
and
1,146 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,22 @@ | ||
# GitHub Actions - CI for Go to build & test. See ci-go-cover.yml and linters.yml for code coverage and linters. | ||
# Taken from: https://github.com/fxamacker/cbor/workflows/ci.yml (thanks!) | ||
name: ci | ||
on: [push] | ||
on: [push, pull_request] | ||
jobs: | ||
|
||
# Test on various OS with default Go version. | ||
tests: | ||
name: Test on ${{matrix.os}} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
go-version: [1.17.x, 1.18.x] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v1 | ||
- name: Install Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
fetch-depth: 1 | ||
- name: Get dependencies | ||
run: go get -v -t -d ./... | ||
- name: Build project | ||
run: go build . | ||
- name: Install test cases | ||
run: make install | ||
go-version: ${{ matrix.go-version }} | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Run tests | ||
run: | | ||
go version | ||
go test -short -race -v . | ||
run: go test -race -v . |
Oops, something went wrong.