Skip to content

Commit

Permalink
Run acceptance tests on all OS (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
jalseth authored Apr 20, 2021
1 parent 0e137b9 commit 7066aa3
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions .github/workflows/pull_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ on: [pull_request]
jobs:
go-tests:
name: Go Tests
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: setup go
uses: actions/setup-go@v2
Expand All @@ -20,11 +23,23 @@ jobs:
- name: build
run: make build

- name: install bats
- name: install bats ubuntu
run: sudo npm install -g bats
if: ${{ matrix.os == 'ubuntu-latest' }}

- name: install bats windows
run: npm install -g bats
if: ${{ matrix.os == 'windows-latest' }}

- name: acceptance tests
- name: acceptance tests *nix
run: make acceptance
if: ${{ matrix.os != 'windows-latest' }}

- name: acceptance tests windows
run: |
$env:Path += ";C:\npm\prefix\node_modules\bats\libexec\bats-core"
make acceptance
if: ${{ matrix.os == 'windows-latest' }}

docker-tests:
name: Docker Tests
Expand Down

0 comments on commit 7066aa3

Please sign in to comment.