Switch to GHA.

This commit is contained in:
Alec Thomas
2021-08-01 14:45:09 +10:00
parent d1a818b5a1
commit 676890f22f
2 changed files with 27 additions and 17 deletions
+27
View File
@@ -0,0 +1,27 @@
on:
push:
branches:
- master
pull_request:
name: CI
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Init Hermit
run: ./bin/hermit env -r >> $GITHUB_ENV
- name: Test
run: go test ./...
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Init Hermit
run: ./bin/hermit env -r >> $GITHUB_ENV
- name: golangci-lint
run: golangci-lint run