-
Notifications
You must be signed in to change notification settings - Fork 10
34 lines (31 loc) · 1.04 KB
/
detailed-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Test multiple PowerShell Core versions
on:
push:
branches: [ "main" ]
schedule:
- cron: 0 0 * * *
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
# This is necessary because there is no ubuntu version common to all the powershell docker images.
versions:
- {pwsh: 7.4, ubuntu: 20.04}
- {pwsh: 7.3, ubuntu: 20.04}
- {pwsh: 7.2, ubuntu: 20.04}
- {pwsh: 7.1.5, ubuntu: 18.04}
- {pwsh: 7.0.0, ubuntu: 18.04}
- {pwsh: 6.1.3, ubuntu: 16.04}
- {pwsh: 6.1.0, ubuntu: 16.04}
- {pwsh: 6.0.4, ubuntu: 16.04}
steps:
- uses: actions/checkout@v4
- name: Build the Docker image
run: |
export VERSION=${{ matrix.versions.pwsh }}
export UBUNTU_VERSION=${{ matrix.versions.ubuntu }}
docker build . --file test/Dockerfile \
--tag powershell-featureflags-test:$VERSION \
--build-arg VERSION=$VERSION --build-arg UBUNTU_VERSION=$UBUNTU_VERSION
docker run powershell-featureflags-test:$VERSION