Skip to content

Commit

Permalink
Migrate our CI to GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoholiveira committed Feb 14, 2022
1 parent f104e6e commit e28feac
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 11 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
on: [push, pull_request]
name: Continuous Integration
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
go: ['1.14', '1.15', '1.16']
name: Running with Go ${{ matrix.go }}
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- name: Checkout code
uses: actions/checkout@v2
- name: Run the tests
run: go test -coverprofile=coverage.txt -covermode=count ./...
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
files: coverage.txt
10 changes: 0 additions & 10 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,6 +1,6 @@
# Go JSON Logic

[![Build Status](https://travis-ci.org/diegoholiveira/jsonlogic.svg)](https://travis-ci.org/diegoholiveira/jsonlogic)
![test workflow](https://github.com/diegoholiveira/jsonlogic/actions/workflows/test/badge.svg)
[![codecov](https://codecov.io/gh/diegoholiveira/jsonlogic/branch/master/graph/badge.svg)](https://codecov.io/gh/diegoholiveira/jsonlogic)
[![Go Report Card](https://goreportcard.com/badge/github.com/diegoholiveira/jsonlogic)](https://goreportcard.com/report/github.com/diegoholiveira/jsonlogic)

Expand Down

0 comments on commit e28feac

Please sign in to comment.