Add windows servers to smoke test · docker-library/bashbrew@5eb555b (original) (raw)

Original file line number Diff line number Diff line change
@@ -11,9 +11,12 @@ defaults:
11 11 shell: 'bash -Eeuo pipefail -x {0}'
12 12
13 13 jobs:
14 -build:
15 -name: Build
16 -runs-on: ubuntu-latest
14 +build-matrix:
15 +strategy:
16 +matrix:
17 +os: [ ubuntu-latest, windows-2019, windows-2022 ]
18 +name: Build ${{ matrix.os }}
19 +runs-on: ${{ matrix.os }}
17 20 steps:
18 21 - uses: actions/checkout@v3
19 22 - uses: ./ # test our "action.yml" 👀
@@ -25,7 +28,7 @@ jobs:
25 28 bashbrew cat "$image"
26 29 bashbrew from --uniq "$image"
27 30
28 - "$BASHBREW_SCRIPTS/bashbrew-host-arch.sh" # should print "amd64"
31 + "$BASHBREW_SCRIPTS/bashbrew-host-arch.sh" # should print "amd64" or "windows-amd64"
29 32
30 33 arm32v7="$("$BASHBREW_SCRIPTS/bashbrew-arch-to-goenv.sh" arm32v7)"
31 34 eval "$arm32v7"