Switch to GHA.
This commit is contained in:
@@ -1,17 +0,0 @@
|
||||
version: 2
|
||||
jobs:
|
||||
build:
|
||||
docker:
|
||||
- image: cimg/base:2021.04
|
||||
steps:
|
||||
- checkout
|
||||
- run:
|
||||
name: Test
|
||||
command: |
|
||||
. ./bin/activate-hermit
|
||||
go test -v ./...
|
||||
- run:
|
||||
name: Lint
|
||||
command: |
|
||||
. ./bin/activate-hermit
|
||||
golangci-lint run
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user