Skip to content

Commit

Permalink
separate windows and linux test
Browse files Browse the repository at this point in the history
  • Loading branch information
warrensbox committed Apr 1, 2024
1 parent da4d8b8 commit 5ae065a
Showing 1 changed file with 26 additions and 2 deletions.
28 changes: 26 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ on:
- '!master' # excludes master
jobs:

integration_tests:
integration_tests_linux:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
os: [ubuntu-latest]
go_version: ['1.22']
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -38,3 +38,27 @@ jobs:
find ./test-data/* -type d -print0 | while read -r -d $'\0' TEST_PATH; do
./build/tfswitch -c "${TEST_PATH}" -b `pwd`/bin/terraform || exit 1
done
integration_tests_windows:
strategy:
matrix:
os: [windows-latest]
go_version: ['1.22']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go_version }}

- name: Build code
run: go build -v ./...

- name: Running test
run: |
set -e
go get -v -t -d ./...
go vet -tests=false ./...
go test -v ./...

0 comments on commit 5ae065a

Please sign in to comment.