Skip to content

Commit

Permalink
ops(go): implement go ci workflow to github workflows
Browse files Browse the repository at this point in the history
closes in-toto#62
  • Loading branch information
kriscoleman committed Jul 12, 2023
1 parent 8ed3f40 commit 7765fae
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/go.yml
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 ./...

0 comments on commit 7765fae

Please sign in to comment.