2023-02-20 04:57:26 +08:00
|
|
|
name: test
|
|
|
|
|
2023-09-05 14:58:18 +08:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2023-02-20 04:57:26 +08:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- 'master'
|
|
|
|
- 'releases/v*'
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
2023-09-05 14:04:01 +08:00
|
|
|
uses: actions/checkout@v4
|
2023-02-20 04:57:26 +08:00
|
|
|
-
|
|
|
|
name: Test
|
2023-09-13 14:26:45 +08:00
|
|
|
uses: docker/bake-action@v4
|
2023-02-20 04:57:26 +08:00
|
|
|
with:
|
|
|
|
targets: test
|
|
|
|
-
|
|
|
|
name: Upload coverage
|
2024-02-01 14:26:27 +08:00
|
|
|
uses: codecov/codecov-action@v4
|
2023-02-20 04:57:26 +08:00
|
|
|
with:
|
|
|
|
file: ./coverage/clover.xml
|
2024-02-23 16:21:42 +08:00
|
|
|
token: ${{ secrets.CODECOV_TOKEN }}
|