forked from in-toto/archivista
-
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.
ops(go): implement go ci workflow to github workflows
closes in-toto#62
- Loading branch information
1 parent
8ed3f40
commit 7765fae
Showing
1 changed file
with
45 additions
and
0 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,45 @@ | ||
# This workflow will build a golang project | ||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go | ||
|
||
name: go ci | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
go_ci: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.19 | ||
|
||
- name: Build archivista | ||
run: cd ./subtrees/archivista && go build -v ./... | ||
|
||
- name: Build go-witness | ||
run: cd ./subtrees/go-witness && go build -v ./... | ||
|
||
- name: Build judge-api | ||
run: cd ./judge-api && go build -v ./... | ||
|
||
- name: Build witness | ||
run: cd ./subtrees/witness && go build -v ./... | ||
|
||
- name: Test archivista | ||
run: cd ./subtrees/archivista && go test -v ./... | ||
|
||
- name: Test go-witness | ||
run: cd ./subtrees/go-witness && go test -v ./... | ||
|
||
- name: Test judge-api | ||
run: cd ./judge-api && go test -v ./... | ||
|
||
- name: Test witness | ||
run: cd ./subtrees/witness && go test -v ./... |