Skip to content

Commit

Permalink
Fix: go cov
Browse files Browse the repository at this point in the history
  • Loading branch information
dwasse committed Aug 6, 2024
1 parent 0d6e4e6 commit 8b3bbab
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ name: Go Workflows
on:
pull_request:
branches-ignore:
- 'gh-pages'
- 'fe-release'
- 'gh-pages'
- 'fe-release'
push:
branches-ignore:
- 'gh-pages'
Expand Down Expand Up @@ -77,8 +77,8 @@ jobs:

test:
name: Go Coverage
runs-on: ${{ (matrix.package == 'agents' || matrix.package == 'core' || matrix.package == 'tools' || contains(matrix.package, 'explorer') || contains(matrix.package, 'contrib')) && 'ubuntu-latest' || 'namespace-profile-default-coverage-runner' }}
if: ${{ !contains(matrix.package, 'agents') && needs.changes.outputs.package_count_deps > 0 && (github.event_name != 'push' || github.ref == format('refs/heads/{0}', github.event.repository.default_branch)) }}
runs-on: ${{ (matrix.package == 'core' || matrix.package == 'tools' || contains(matrix.package, 'explorer') || contains(matrix.package, 'contrib')) && 'ubuntu-latest' || 'namespace-profile-default-coverage-runner' }}
if: ${{ needs.changes.outputs.package_count_deps > 0 && (github.event_name != 'push' || github.ref == format('refs/heads/{0}', github.event.repository.default_branch)) }}
needs: changes
strategy:
fail-fast: false
Expand Down Expand Up @@ -109,7 +109,7 @@ jobs:

- name: Go modules cache
uses: actions/cache@v4
if: ${{ !contains(runner.name, 'nsc') }}
if: ${{ !contains(runner.name, 'nsc') }}
with:
# see https://github.com/mvdan/github-actions-golang
# also: https://glebbahmutov.com/blog/do-not-let-npm-cache-snowball/ w/ go build (workaround now is having a cache that just gets expired at night)
Expand Down Expand Up @@ -143,7 +143,6 @@ jobs:
sleep 1
done
- name: Install gotestsum
uses: jaxxstorm/[email protected]
with: # Grab the latest version
Expand All @@ -156,7 +155,6 @@ jobs:
run: |
echo "::set-output name=flag::$(echo "${{ matrix.package }}" | rev | cut -d/ -f1 | rev)"
- name: Precompile Tests
working-directory: ${{ matrix.package }}
run: go test -run=nope ./...
Expand Down Expand Up @@ -232,9 +230,8 @@ jobs:
run: echo "::set-output name=package_name::$(echo ${{ matrix.package }} | sed 's/\//-/g')"
shell: bash


- name: Upload logs to GitHub
# if: failure()
# if: failure()
uses: actions/upload-artifact@v4
with:
name: ${{ steps.replace.outputs.package_name }}
Expand Down

0 comments on commit 8b3bbab

Please sign in to comment.