-
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 #1 from tehmoon/workflow
workflow and update code
- Loading branch information
Showing
5 changed files
with
68 additions
and
12 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,31 @@ | ||
name: Go | ||
on: | ||
pull_request: | ||
types: [synchronize, review_requested, edited, opened] | ||
push: | ||
branches: | ||
- "master" | ||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-go@v2 | ||
with: | ||
go-version: '^1.15.6' # The Go version to download (if necessary) and use. | ||
- run: | | ||
set -euxfo pipefail | ||
for dir in auth-oath auth-oathd | ||
do ( | ||
cd "${dir}" | ||
set +e; go get -v ./...; set -e | ||
go build . | ||
) done | ||
mkdir -pv artifacts/linux-x86_64 | ||
mv auth-oath/auth-oath auth-oathd/auth-oathd artifacts/linux-x86_64 | ||
- name: upload | ||
uses: actions/upload-artifact@master | ||
with: | ||
name: artifacts | ||
path: artifacts |
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
Binary file not shown.
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[ | ||
{ | ||
"user": "blih", | ||
"key": "7a0087bd035cca49c39b7a80b39e4a5953e774bdc90075737132a5f67b640ec4" | ||
} | ||
] |