Skip to content
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.

Migrate GitHub Actions #272

Merged
merged 1 commit into from
Sep 6, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 0 additions & 56 deletions .github/main.workflow

This file was deleted.

39 changes: 39 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
on: push
name: main workflow
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: lint
uses: docker://golangci/golangci-lint:latest
with:
entrypoint: golangci-lint
args: run --disable-all --enable=gofmt --enable=vet --enable=gocyclo --enable=golint
--enable=ineffassign --enable=misspell --deadline=5m
- name: tidy
uses: docker://golang:1.12
env:
GOPATH: /github/workspace/.go
with:
entrypoint: go
args: mod tidy
- name: download
uses: docker://golang:1.12
env:
GOPATH: /github/workspace/.go
with:
entrypoint: go
args: mod download
- name: check modified
uses: docker://alpine/git:latest
with:
entrypoint: sh
args: -c "! git status | grep modified"
- name: test
uses: docker://golang:1.12
env:
GOPATH: /github/workspace/.go
with:
entrypoint: go
args: test ./...