Skip to content

Commit

Permalink
gotestsum
Browse files Browse the repository at this point in the history
  • Loading branch information
chaudharysaket committed Feb 28, 2024
1 parent db98fc1 commit 0b51233
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/build-test-coverage.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
# This workflow will test and run code coverage for the golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go

name: Build Release Assets
on: [push]
name: Build Test Coverage
on:
pull_request:
push:


env:
TEST_RESULTS: /tmp/test-results
Expand All @@ -11,16 +14,17 @@ jobs:
build-release-x86_64:
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Checkout code
uses: actions/checkout@v4

cache: true
- name: Create test directory
run: mkdir -p $TEST_RESULTS

- name: Install gotestsum
run: go install gotest.tools/gotestsum@latest
- name: Run unit tests
run: |
PACKAGE_NAMES=$(go list ./... | xargs)
Expand Down

0 comments on commit 0b51233

Please sign in to comment.