Skip to content

Commit

Permalink
update github workflow actions
Browse files Browse the repository at this point in the history
  • Loading branch information
kyoh86 committed Nov 16, 2022
1 parent d2d86a1 commit 71e1e05
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 30 deletions.
22 changes: 10 additions & 12 deletions .github/workflows/assign.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
name: Issue assignment

on:
issues:
types: [opened]

issues:
types: [opened]
jobs:
auto-assign:
runs-on: ubuntu-latest
steps:
- name: 'Auto-assign issue'
uses: pozil/auto-assign-issue@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
assignees: kyoh86
auto-assign:
runs-on: ubuntu-latest
steps:
- name: 'Auto-assign issue'
uses: pozil/auto-assign-issue@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
assignees: kyoh86
5 changes: 2 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ on:
Which number to increment in the semantic versioning.
Set 'major', 'minor' or 'patch'.
required: true

jobs:
release:
name: Release
Expand Down Expand Up @@ -42,9 +41,9 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: 1.18
go-version: 1.19
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
uses: goreleaser/goreleaser-action@v3
env:
GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }}
with:
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/review.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
name: Review

on:
[pull_request]

on: [pull_request]
jobs:
lint:
runs-on: ubuntu-latest
Expand Down
18 changes: 7 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ on:
push:
branches:
- '*'

jobs:
test:
name: Test local sources
Expand All @@ -19,10 +18,9 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: 1.18
go-version: 1.19
- name: Test Go
run: go test -v --race ./...

run: go test -v --race ./...
test-release:
name: Test releases
runs-on: ubuntu-latest
Expand All @@ -32,16 +30,15 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: 1.18
go-version: 1.19
- name: Try Bump-up Semantic Version
uses: kyoh86/git-vertag-action@v1
with:
method: "patch"
- name: Run GoReleaser (dry-run)
uses: goreleaser/goreleaser-action@v2
uses: goreleaser/goreleaser-action@v3
with:
args: release --rm-dist --skip-publish --snapshot

test-others:
name: Test others
runs-on: ubuntu-latest
Expand All @@ -51,19 +48,18 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: 1.18
go-version: 1.19
- name: Search diagnostics
uses: golangci/golangci-lint-action@v3
with:
version: v1.50
- name: Take coverage
run: go test -coverprofile=coverage.txt -covermode=atomic ./...
- name: Send coverage
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v3
with:
fail_ci_if_error: true
files: coverage.txt

test-status:
name: Test status
runs-on: ubuntu-latest
Expand All @@ -73,7 +69,7 @@ jobs:
- test-release
steps:
- name: Set Check Status Success
uses: Sibz/github-status-action@v1.1.1
uses: Sibz/github-status-action@v1.1.6
with:
context: test-status
authToken: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 71e1e05

Please sign in to comment.