From 7765fae448fb0196aee04f5c32a40d55d6dc54f8 Mon Sep 17 00:00:00 2001 From: Kris Coleman Date: Tue, 11 Jul 2023 16:23:01 -0400 Subject: [PATCH] ops(go): implement go ci workflow to github workflows closes #62 --- .github/workflows/go.yml | 45 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/go.yml diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 00000000..bbee849f --- /dev/null +++ b/.github/workflows/go.yml @@ -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 ./... \ No newline at end of file