Migrate to GitHub Actions #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push, pull_request] | |
jobs: | |
test: | |
env: | |
GOFLAGS: -buildvcs=fals | |
runs-on: ubuntu-latest | |
container: | |
image: golang:latest | |
steps: | |
- name: Setup Go environment | |
uses: actions/[email protected] | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: make dep | |
- name: Run golangci-lint | |
uses: golangci/[email protected] | |
- name: Run tests | |
run: make test |