2021-01-19 22:19:35 +01:00
|
|
|
name: Test
|
2020-12-09 02:49:54 +01:00
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
2021-01-19 22:19:35 +01:00
|
|
|
test:
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest, macos-latest]
|
|
|
|
runs-on: ${{ matrix.os }}
|
2020-12-09 02:49:54 +01:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-07-07 19:53:47 +02:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2020-12-09 02:49:54 +01:00
|
|
|
- run: git clone --depth 1 https://github.com/sstephenson/bats.git
|
|
|
|
- run: PATH="./bats/bin:$PATH" script/test
|
2021-07-07 19:53:47 +02:00
|
|
|
env:
|
|
|
|
COMMIT_RANGE: ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }}
|