2019-09-22 05:17:07 +00:00
|
|
|
name: test
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2019-10-04 14:23:35 +00:00
|
|
|
branches:
|
2020-05-23 23:15:17 +00:00
|
|
|
- master
|
|
|
|
- releases/v*
|
2020-05-10 14:24:22 +00:00
|
|
|
paths-ignore:
|
|
|
|
- '**.md'
|
|
|
|
pull_request:
|
|
|
|
paths-ignore:
|
|
|
|
- '**.md'
|
2019-09-22 05:17:07 +00:00
|
|
|
|
|
|
|
jobs:
|
2020-11-22 22:34:12 +00:00
|
|
|
test-containerized:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
-
|
|
|
|
name: Validate
|
|
|
|
run: docker buildx bake validate
|
|
|
|
-
|
|
|
|
name: Test
|
|
|
|
run: docker buildx bake test
|
|
|
|
|
2019-09-22 05:17:07 +00:00
|
|
|
test:
|
2020-05-07 09:50:41 +00:00
|
|
|
runs-on: ${{ matrix.os }}
|
2020-05-07 09:51:19 +00:00
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
os:
|
|
|
|
- ubuntu-latest
|
|
|
|
- macOS-latest
|
|
|
|
- windows-latest
|
2019-09-22 05:17:07 +00:00
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
2020-11-06 20:26:05 +00:00
|
|
|
uses: actions/checkout@v2
|
2020-06-15 16:36:44 +00:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2019-09-22 05:17:07 +00:00
|
|
|
-
|
|
|
|
name: Install
|
2020-06-10 21:08:02 +00:00
|
|
|
run: yarn install
|
2019-09-22 05:17:07 +00:00
|
|
|
-
|
|
|
|
name: Test
|
2020-06-10 21:08:02 +00:00
|
|
|
run: yarn run test
|
2020-05-07 09:47:49 +00:00
|
|
|
-
|
|
|
|
name: Upload coverage
|
2020-11-06 20:26:05 +00:00
|
|
|
uses: codecov/codecov-action@v1
|
2020-05-07 09:47:49 +00:00
|
|
|
if: success()
|
|
|
|
with:
|
|
|
|
token: ${{ secrets.CODECOV_TOKEN }}
|
|
|
|
file: ./coverage/clover.xml
|