Skip to content

Commit

Permalink
Merge pull request #1 from shmokmt/introduce-actions
Browse files Browse the repository at this point in the history
Introduce actions
  • Loading branch information
shmokmt committed Jun 26, 2021
2 parents dd7ad9b + 1314570 commit 8fe6abb
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Go

on:
push:
branches: [main]
pull_request:

jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
matrix:
go: ["1.16"]
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}

- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Test
run: go test ./...
15 changes: 15 additions & 0 deletions .github/workflows/reviewdog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: reviewdog
on: [pull_request]

jobs:
golangci-lint:
name: golangci-lint
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: golangci-lint
uses: reviewdog/action-golangci-lint@v1
with:
reporter: github-pr-review
level: warning

0 comments on commit 8fe6abb

Please sign in to comment.