Skip to content

Commit

Permalink
Merge pull request #20 from qmuntal/dev/qmuntal/fix-ci
Browse files Browse the repository at this point in the history
Fix CI and add first fuzz test
  • Loading branch information
SteveLasker authored Apr 1, 2022
2 parents 9a28930 + 93cb3d3 commit 2895992
Show file tree
Hide file tree
Showing 12 changed files with 135 additions and 1,146 deletions.
88 changes: 0 additions & 88 deletions .circleci/config.yml

This file was deleted.

10 changes: 6 additions & 4 deletions .github/workflows/ci-go-cover.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# 2. Update README.md to use the new path to badge.svg because the path includes the workflow name.

name: cover ≥89%
on: [push]
on: [push, pull_request]
jobs:

# Verify minimum coverage is reached using `go test -short -cover` on latest-ubuntu with default version of Go.
Expand All @@ -25,9 +25,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install test cases
run: make install
uses: actions/checkout@v2
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.18.x
- name: Go Coverage
run: |
go version
Expand Down
25 changes: 11 additions & 14 deletions .github/workflows/ci.yml
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 .
51 changes: 0 additions & 51 deletions Makefile

This file was deleted.

Loading

0 comments on commit 2895992

Please sign in to comment.