Skip to content
Snippets Groups Projects
Commit 5cdc623f authored by Will McCutchen's avatar Will McCutchen
Browse files

Switch from travis to github actions

parent 7f2d51cb
No related branches found
No related tags found
No related merge requests found
name: CI
on: [pull_request]
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Setup
uses: actions/setup-go@v2
with:
go-version: '1.14'
- name: Checkout
uses: actions/checkout@v2
- name: Lint
run: make lint
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Setup
uses: actions/setup-go@v2
with:
go-version: '1.14'
- name: Checkout
uses: actions/checkout@v2
- name: Test
run: make testci
- name: Code coverage
uses: codecov/codecov-action@v1
with:
file: ./coverage.txt
regression_test:
name: Regression Tests
runs-on: ubuntu-latest
strategy:
matrix:
go_version:
- '1.11'
- '1.12'
- '1.13'
steps:
- name: Setup
uses: actions/setup-go@v2
with:
go-version: ${{matrix.go_version}}
- name: Checkout
uses: actions/checkout@v2
- name: Test
run: make test
---
language: go
go:
- '1.11'
- '1.12'
- '1.13'
script:
- make lint
- make testci
after_success:
# Upload test coverage results to codecov.io
# https://github.com/codecov/example-go/blob/b85638743b972bd0bd2af63421fe513c6f968930/README.md
- bash <(curl -s https://codecov.io/bash)
# With this filter, we aim to restrict Travis's "Build Pushes" feature to build
# only pushes to master, while allowing the "Build Pull Requests" to build all
# incoming pull requests without redundant double-builds.
#
# This is confusing on Travis's end; this captures the exact problem we're
# trying to solve:
# https://stackoverflow.com/a/31882307
branches:
only:
- master
notifications:
email: false
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment