-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Michael Savin
committed
Dec 8, 2021
1 parent
9edd7cf
commit 41f1269
Showing
4 changed files
with
44 additions
and
23 deletions.
There are no files selected for viewing
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,4 @@ | ||
# Release name | ||
|
||
- First feature | ||
- Second feature |
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 |
---|---|---|
@@ -1,6 +1,9 @@ | ||
on: | ||
push: | ||
branches: [main] | ||
workflow_run: | ||
workflows: [ "GolangCI-lint" ] | ||
branches: [ main ] | ||
types: | ||
- completed | ||
pull_request: | ||
branches: [main] | ||
|
||
|
@@ -11,38 +14,20 @@ defaults: | |
shell: bash | ||
|
||
jobs: | ||
lint: | ||
name: Lint files | ||
runs-on: 'ubuntu-latest' | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: actions/setup-go@v2 | ||
with: | ||
go-version: '1.17.3' | ||
- name: golangci-lint | ||
uses: golangci/[email protected] | ||
with: | ||
version: latest | ||
|
||
build: | ||
name: Build binary | ||
runs-on: 'ubuntu-latest' | ||
needs: lint | ||
strategy: | ||
matrix: | ||
goosarch: | ||
- 'darwin/amd64' | ||
- 'darwin/arm64' | ||
- 'linux/386' | ||
- 'linux/amd64' | ||
- 'linux/arm' | ||
- 'linux/arm64' | ||
steps: | ||
- name: Checkout code | ||
uses: actions/[email protected] | ||
- uses: actions/setup-go@v2 | ||
with: | ||
go-version: '1.17.3' | ||
go-version: '1.17' | ||
|
||
- name: Get OS and arch info | ||
run: | | ||
|
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,30 @@ | ||
on: | ||
push: | ||
paths: | ||
- "go.sum" | ||
- "go.mod" | ||
- "**.go" | ||
- ".github/workflows/golangci-lint.yml" | ||
- ".golangci.yml" | ||
pull_request: | ||
paths: | ||
- "go.sum" | ||
- "go.mod" | ||
- "**.go" | ||
- ".github/workflows/golangci-lint.yml" | ||
- ".golangci.yml" | ||
|
||
name: GolangCI-lint | ||
|
||
jobs: | ||
golangci: | ||
name: lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Lint | ||
uses: golangci/golangci-lint-action@v2 | ||
with: | ||
version: v1.42.0 |
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