Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Allenxuxu authored Sep 23, 2019
1 parent 4110428 commit bfd4a24
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: CI
on: [push,pull_request]
jobs:
lint:
name: Lint
runs-on: ubuntu-18.04
steps:
- name: Set up Go 1.12
uses: actions/setup-go@v1
with:
go-version: 1.12
id: go
- name: Code
uses: actions/checkout@v1
- name: Intsall Golangci-lint
run: curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b . latest
- name: Lint
run: ./golangci-lint run ./...

test:
name: Unit Testing
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-18.04]
steps:
- name: Set up Go 1.12
uses: actions/setup-go@v1
with:
go-version: 1.12
id: go
- name: Code
uses: actions/checkout@v1
- name: Go Get dependencies
run: go get -v -t -d ./...
- name: Go Test
run: go test -v ./...

0 comments on commit bfd4a24

Please sign in to comment.