-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pull requests will automatically trigger a build and test run. The produced binaries are stored as artifacts in the Github workflow.
- Loading branch information
1 parent
7d431a7
commit 81943f4
Showing
3 changed files
with
19 additions
and
50 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,24 +1,30 @@ | ||
name: Go | ||
name: "Unit and Build Tests" | ||
|
||
on: | ||
- push | ||
push: | ||
pull_request: | ||
branches: [ master ] | ||
|
||
|
||
jobs: | ||
build-test: | ||
runs-on: "ubuntu-latest" | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.16 | ||
go-version: 1.19 | ||
|
||
- name: Test | ||
run: make test | ||
- name: "Build & test" | ||
run: "make tools test cross_compile" | ||
|
||
- name: Build | ||
run: make tools cross_compile | ||
- name: Upload build artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: binaries | ||
path: builds/pkg/*/gotty |
This file was deleted.
Oops, something went wrong.
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