ghaction-upx/.github/workflows/test.yml

61 lines
1.1 KiB
YAML
Raw Normal View History

2020-01-17 01:36:42 -07:00
name: test
on:
push:
branches:
- 'master'
- 'releases/v*'
2020-05-23 17:14:30 -06:00
paths-ignore:
- '**.md'
pull_request:
branches:
- 'master'
- 'releases/v*'
2020-05-23 17:14:30 -06:00
paths-ignore:
- '**.md'
2020-01-17 01:36:42 -07:00
jobs:
test-containerized:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
-
name: Validate
uses: docker/bake-action@v1
with:
targets: validate
-
name: Test
uses: docker/bake-action@v1
with:
targets: test
2020-01-17 01:36:42 -07:00
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- windows-latest
steps:
-
name: Checkout
2020-11-07 18:56:29 -07:00
uses: actions/checkout@v2
2020-01-17 01:36:42 -07:00
-
name: Install
2020-06-10 14:22:42 -06:00
run: yarn install
2020-01-17 01:36:42 -07:00
-
name: Test
2020-06-10 14:22:42 -06:00
run: yarn run test
2020-05-06 13:17:47 -06:00
-
name: Upload coverage
2020-11-07 18:56:29 -07:00
uses: codecov/codecov-action@v1
2020-05-06 13:17:47 -06:00
if: success()
with:
file: ./coverage/clover.xml