Skip to content

Commit

Permalink
Merge pull request #34 from go-openapi/add-ci
Browse files Browse the repository at this point in the history
Migrate CI to github workflow
  • Loading branch information
casualjim authored Nov 24, 2021
2 parents a6d82e4 + 9fc3f37 commit 3d13832
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 30 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.go text eol=lf
46 changes: 46 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Go

on: [push, pull_request]

jobs:
build:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
fail-fast: false

steps:
- uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17.1

- name: Setup gotestsum
uses: autero1/[email protected]
with:
gotestsum_version: 1.7.0

- name: Test
run: gotestsum --format short-verbose -- -race -timeout=20m -coverprofile=coverage_txt -covermode=atomic ./...

- uses: codecov/codecov-action@v2
with:
files: coverage_txt

lint:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
fail-fast: false

steps:
- uses: actions/checkout@v2
- uses: golangci/golangci-lint-action@v2
with:
args: --timeout=5m
3 changes: 3 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,6 @@ linters:
- errorlint
- paralleltest
- tparallel
- cyclop
- errname
- varnamelen
30 changes: 0 additions & 30 deletions .travis.yml

This file was deleted.

0 comments on commit 3d13832

Please sign in to comment.