Skip to content

Commit

Permalink
feat: migrate to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
kernle32dll committed Jan 13, 2021
1 parent b575052 commit 928c322
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 28 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: golangci-lint

on: [ push ]
jobs:
golangci:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: v1.34
39 changes: 39 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: test

on: [ push, pull_request ]
jobs:
test:
strategy:
matrix:
go: [
1.13.x,
1.14.x,
1.15.x,
]
os: [
ubuntu-latest,
macos-latest,
windows-latest,
]

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

env:
OS: ${{ matrix.os }}

steps:
- name: Install Go ${{ matrix.go }}
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- name: Checkout
uses: actions/checkout@v2
- name: Test
run: go test -v -race -coverprofile="coverage.txt" -covermode=atomic .
- name: Upload code coverage
uses: codecov/codecov-action@v1
if: matrix.go == '1.15.x'
with:
file: coverage.txt
env_vars: OS

27 changes: 0 additions & 27 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Build Status](https://travis-ci.com/kernle32dll/jwtcache-go.svg?branch=master)](https://travis-ci.com/kernle32dll/jwtcache-go)
![test](https://github.com/kernle32dll/jwtcache-go/workflows/test/badge.svg)
[![Go Reference](https://pkg.go.dev/badge/github.com/kernle32dll/jwtcache-go.svg)](https://pkg.go.dev/github.com/kernle32dll/jwtcache-go)
[![Go Report Card](https://goreportcard.com/badge/github.com/kernle32dll/jwtcache-go)](https://goreportcard.com/report/github.com/kernle32dll/jwtcache-go)
[![codecov](https://codecov.io/gh/kernle32dll/jwtcache-go/branch/master/graph/badge.svg)](https://codecov.io/gh/kernle32dll/jwtcache-go)
Expand Down

0 comments on commit 928c322

Please sign in to comment.