| 1 |
name: stress |
| 2 |
permissions: |
| 3 |
contents: read |
| 4 |
on: |
| 5 |
schedule: |
| 6 |
- cron: "33 3 * * 6" |
| 7 |
jobs: |
| 8 |
test: |
| 9 |
runs-on: ubuntu-latest |
| 10 |
env: |
| 11 |
GOFLAGS: -tags=stress |
| 12 |
steps: |
| 13 |
- name: Install Go |
| 14 |
uses: actions/setup-go@c4a742cab115ed795e34d4513e2cf7d472deb55f |
| 15 |
with: |
| 16 |
go-version: 1.21.x |
| 17 |
check-latest: true |
| 18 |
- name: Checkout code |
| 19 |
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 |
| 20 |
with: |
| 21 |
persist-credentials: false |
| 22 |
- name: Bootstrap |
| 23 |
run: ./script/bootstrap |
| 24 |
- name: Generate |
| 25 |
run: ./script/generate |
| 26 |
- name: Status |
| 27 |
run: git status |
| 28 |
- name: Build |
| 29 |
run: go build ./... |
| 30 |
- name: Test |
| 31 |
run: go test -bench . ./... |
| 32 |
- name: Coverage |
| 33 |
run: ./script/coverage |
| 34 |
- name: Upload Stress Unit Test Coverage |
| 35 |
uses: codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70 |
| 36 |
with: |
| 37 |
token: ${{ secrets.CODECOV_TOKEN }} |
| 38 |
files: unittests.coverprofile |
| 39 |
flags: stress |