Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 5 additions & 21 deletions .github/workflows/static-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
name: static-tests

on:
# schedule:
# # times are in UTC
# - cron: '19 21 * * *'
pull_request:
branches:
- master
Expand All @@ -26,32 +23,19 @@ on:
jobs:
unit-test:
runs-on: ubuntu-latest
env:
working-directory: ${{ github.workspace }}/go/src/github.com/${{ github.repository }}
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
uses: actions/checkout@v5
- name: Set up Go
uses: actions/setup-go@v6
with:
ref: ${{ github.event.pull_request.head.sha }}
path: go/src/github.com/${{ github.repository }}

- name: Set up Go 1.24
uses: actions/setup-go@v2
with:
go-version: 1.24.x
id: go

go-version-file: 'go.mod'
- name: make unit-test
working-directory: ${{ env.working-directory }}
run: |
export GOPATH=${GITHUB_WORKSPACE}/go
export PATH=$PATH:$GOPATH/bin
make check
make test

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v5
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lack the token: ${{ secrets.CODECOV_TOKEN }} part

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to be ok. It might use a generic and/or github token. We can switch this later when needed.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK.

with:
working-directory: ${{ env.working-directory }}
files: ./tests/cov.unit-test.out
flags: unittests