mirror of
https://github.com/crazy-max/ghaction-upx.git
synced 2024-11-22 10:26:08 -07:00
925acc7207
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
61 lines
1.1 KiB
YAML
61 lines
1.1 KiB
YAML
name: test
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'master'
|
|
- 'releases/v*'
|
|
paths-ignore:
|
|
- '**.md'
|
|
pull_request:
|
|
branches:
|
|
- 'master'
|
|
- 'releases/v*'
|
|
paths-ignore:
|
|
- '**.md'
|
|
|
|
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
|
|
|
|
test:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os:
|
|
- ubuntu-latest
|
|
- windows-latest
|
|
steps:
|
|
-
|
|
name: Checkout
|
|
uses: actions/checkout@v2
|
|
-
|
|
name: Install
|
|
run: yarn install
|
|
-
|
|
name: Test
|
|
run: yarn run test
|
|
-
|
|
name: Upload coverage
|
|
uses: codecov/codecov-action@v1
|
|
if: success()
|
|
with:
|
|
file: ./coverage/clover.xml
|