-
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
Showing
11 changed files
with
44 additions
and
56 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,18 @@ | ||
# This workflow will release the built binaries for Linux, macOS and Windows. | ||
# ============================================================================= | ||
# Release Assets and Homebrew's Tap | ||
# ============================================================================= | ||
# This workflow will build the binaries and push the archives to the assets in | ||
# the releases page if a release was created. Then pushes the tap config file | ||
# for Homebrew tap. See: ../../.goreleaser.yml | ||
name: Release | ||
|
||
on: | ||
workflow_dispatch: | ||
release: | ||
types: | ||
- created | ||
tags: | ||
- 'v*' | ||
- 'v*' | ||
jobs: | ||
goreleaser: | ||
runs-on: ubuntu-latest | ||
|
@@ -14,24 +21,13 @@ jobs: | |
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Run tests | ||
run: docker-compose --file ./.github/docker-compose.yml up mergeability | ||
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: '1.17.x' | ||
- name: Download mods | ||
run: go mod download | ||
# Wait until the unit test (version-tests.yaml) finishes | ||
- name: Wait Tests | ||
id: test_result | ||
uses: Sibz/[email protected] | ||
with: | ||
contexts: test-status | ||
authToken: ${{ secrets.GITHUB_TOKEN }} | ||
timeout: 30 | ||
# Push the built assets to the release page and push Homebrew config file | ||
# to https://github.com/EINOS/homebrew-Hello-Cobra repo. | ||
- name: Run GoReleaser | ||
if: steps.test_result.outputs.result != 'success' | ||
uses: goreleaser/goreleaser-action@v2 | ||
with: | ||
version: latest | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
# Workflow for various Go versions over Docker on any push to main. | ||
# ============================================================================= | ||
# Unit Tests on Go v1.15, 16, 17 and latest | ||
# ============================================================================= | ||
# This Workflow runs unit tests on various Go versions over Docker on any push. | ||
# This action caches the built Docker image for a day unless any change in the | ||
# Dockerfile was made. | ||
name: Go 1.15~latest | ||
|
@@ -80,16 +83,3 @@ jobs: | |
run: docker-compose --file ./.github/docker-compose.yml up latest | ||
- name: Run tests for mergeability | ||
run: docker-compose --file ./.github/docker-compose.yml up mergeability | ||
# If the "go" job suceeds then flag up the finish status as 'success' of this action | ||
# to annouce the other actions. See: release_bin.yaml | ||
test-status: | ||
name: Test status | ||
runs-on: ubuntu-latest | ||
needs: go | ||
steps: | ||
- name: Set Check Status Success | ||
uses: Sibz/[email protected] | ||
with: | ||
context: test-status | ||
authToken: ${{ secrets.GITHUB_TOKEN }} | ||
state: success |
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