2020-10-25 10:21:46 +08:00
|
|
|
name: test
|
|
|
|
|
2023-09-05 17:02:47 +08:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2020-10-25 10:21:46 +08:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- 'master'
|
|
|
|
- 'releases/v*'
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
2020-10-25 22:36:42 +08:00
|
|
|
runs-on: ubuntu-latest
|
2020-10-25 10:21:46 +08:00
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
2023-09-05 03:14:07 +08:00
|
|
|
uses: actions/checkout@v4
|
2020-10-25 10:21:46 +08:00
|
|
|
-
|
|
|
|
name: Test
|
2024-06-18 03:28:46 +08:00
|
|
|
uses: docker/bake-action@v5
|
2021-03-29 19:04:53 +08:00
|
|
|
with:
|
|
|
|
targets: test
|
2020-10-25 10:21:46 +08:00
|
|
|
-
|
|
|
|
name: Upload coverage
|
2024-02-23 16:05:37 +08:00
|
|
|
uses: codecov/codecov-action@v4
|
2020-10-25 10:21:46 +08:00
|
|
|
with:
|
|
|
|
file: ./coverage/clover.xml
|
2024-02-23 16:05:37 +08:00
|
|
|
token: ${{ secrets.CODECOV_TOKEN }}
|