2020-08-18 23:40:31 +08:00
|
|
|
name: test
|
|
|
|
|
2023-09-05 17:09:23 +08:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2020-08-18 23:40:31 +08:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2021-04-02 07:19:14 +08:00
|
|
|
- 'master'
|
|
|
|
- 'releases/v*'
|
2020-08-18 23:40:31 +08:00
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
2023-09-05 12:34:21 +08:00
|
|
|
uses: actions/checkout@v4
|
2021-04-24 00:14:38 +08:00
|
|
|
-
|
|
|
|
name: Set up Docker Buildx
|
|
|
|
uses: ./
|
2020-08-18 23:40:31 +08:00
|
|
|
-
|
|
|
|
name: Test
|
2024-06-18 12:09:56 +08:00
|
|
|
uses: docker/bake-action@v5
|
2021-04-02 07:19:14 +08:00
|
|
|
with:
|
|
|
|
targets: test
|
2020-08-27 23:41:10 +08:00
|
|
|
-
|
|
|
|
name: Upload coverage
|
2024-02-23 16:15:27 +08:00
|
|
|
uses: codecov/codecov-action@v4
|
2020-08-27 23:41:10 +08:00
|
|
|
with:
|
|
|
|
file: ./coverage/clover.xml
|
2024-02-23 16:15:27 +08:00
|
|
|
token: ${{ secrets.CODECOV_TOKEN }}
|