This repository has been archived by the owner on Feb 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #272 from duck8823/maintenance/migration_github_ac…
…tions Migrate GitHub Actions
- Loading branch information
Showing
2 changed files
with
39 additions
and
56 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ./... |