28 lines
571 B
YAML
28 lines
571 B
YAML
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
|