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

Commit

Permalink
Merge pull request #272 from duck8823/maintenance/migration_github_ac…
Browse files Browse the repository at this point in the history
…tions

Migrate GitHub Actions
  • Loading branch information
duck8823 authored Sep 6, 2019
2 parents 04b4b71 + dfb90f5 commit 7063a3b
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 56 deletions.
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 ./...

0 comments on commit 7063a3b

Please sign in to comment.