From eac0845da40198566bf355e0291919ba5a6de53d Mon Sep 17 00:00:00 2001 From: Evan Gordon Date: Thu, 27 Jun 2024 20:02:48 +0000 Subject: [PATCH] Add spec test coverage github action. --- .github/workflows/go_build.yaml | 34 ++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/.github/workflows/go_build.yaml b/.github/workflows/go_build.yaml index a281c3a..09ce95d 100644 --- a/.github/workflows/go_build.yaml +++ b/.github/workflows/go_build.yaml @@ -41,4 +41,36 @@ jobs: - name: Test run: | - go test ./... \ No newline at end of file + go test ./... + + go_spec_test_coverage: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest] + steps: + + - name: Set up Go 1.22 + uses: actions/setup-go@v2 + with: + go-version: 1.22 + id: go + + - name: Check out code + uses: actions/checkout@v3 + + - name: Get dependencies + run: | + go mod download + - name: Build + run: | + go build ./... + + - name: Spec Test Coverage + run: | + go run tests/spectests/cmd/analyzer/analyzer.go > SpecCoverageResults.txt + - name: Upload Spec Coverage Results + uses: actions/upload-artifact@v4 + with: + name: Spec-Coverage-Results + path: SpecCoverageResults.txt \ No newline at end of file