-
-
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.
Merge pull request #7 from jtprogru/feature/time-sleep
Add timeout
- Loading branch information
Showing
11 changed files
with
106 additions
and
44 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 |
---|---|---|
@@ -1,4 +1,2 @@ | ||
|
||
github: | ||
- jtprogru | ||
- t0pep0 | ||
github: [ "jtprogru", "t0pep0" ] |
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,3 +1,4 @@ | ||
# Announcements | ||
# Release name | ||
|
||
* First announcement | ||
- 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.16.4' | ||
- 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: | | ||
|
@@ -63,6 +48,6 @@ jobs: | |
with: | ||
body_path: ".github/RELEASE-TEMPLATE.md" | ||
draft: true | ||
files: ${{env.BINARY_NAME}} | ||
files: ${{ env.BINARY_NAME }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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
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
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
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
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
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
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