Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement (ci): Optimize number of test jobs #183

Merged
merged 1 commit into from
Sep 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
284 changes: 142 additions & 142 deletions .github/workflows/ci-master-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,44 +11,44 @@ on:
- master

jobs:
test-powershell-core-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
submodules: recursive
- name: Powershell version
run: |
pwsh -NoLogo -NonInteractive -NoProfile -Command '$PSVersionTable'
- name: Test
run: |
pwsh -NoLogo -NonInteractive -NoProfile -Command '$VerbosePreference = "Continue"; ./test/test.ps1'
# test-powershell-core-linux:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v1
# with:
# submodules: recursive
# - name: Powershell version
# run: |
# pwsh -NoLogo -NonInteractive -NoProfile -Command '$PSVersionTable'
# - name: Test
# run: |
# pwsh -NoLogo -NonInteractive -NoProfile -Command '$VerbosePreference = "Continue"; ./test/test.ps1'

test-powershell-core-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
with:
submodules: recursive
- name: Powershell version
run: |
pwsh -NoLogo -NonInteractive -NoProfile -Command '$PSVersionTable'
- name: Test
run: |
pwsh -NoLogo -NonInteractive -NoProfile -Command '$VerbosePreference = "Continue"; ./test/test.ps1'
# test-powershell-core-macos:
# runs-on: macos-latest
# steps:
# - uses: actions/checkout@v1
# with:
# submodules: recursive
# - name: Powershell version
# run: |
# pwsh -NoLogo -NonInteractive -NoProfile -Command '$PSVersionTable'
# - name: Test
# run: |
# pwsh -NoLogo -NonInteractive -NoProfile -Command '$VerbosePreference = "Continue"; ./test/test.ps1'

test-powershell-core-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
with:
submodules: recursive
- name: Powershell version
run: |
pwsh -NoLogo -NonInteractive -NoProfile -Command '$PSVersionTable'
- name: Test
run: |
pwsh -NoLogo -NonInteractive -NoProfile -Command '$VerbosePreference = "Continue"; ./test/test.ps1'
# test-powershell-core-windows:
# runs-on: windows-latest
# steps:
# - uses: actions/checkout@v1
# with:
# submodules: recursive
# - name: Powershell version
# run: |
# pwsh -NoLogo -NonInteractive -NoProfile -Command '$PSVersionTable'
# - name: Test
# run: |
# pwsh -NoLogo -NonInteractive -NoProfile -Command '$VerbosePreference = "Continue"; ./test/test.ps1'

test-powershell-5_1-windows-2022:
runs-on: windows-2022
Expand All @@ -63,112 +63,112 @@ jobs:
run: |
powershell -NoLogo -NonInteractive -NoProfile -Command '$VerbosePreference = "Continue"; ./test/test.ps1'

test-powershell-5_1-windows-2019:
runs-on: windows-2019
steps:
- uses: actions/checkout@v1
with:
submodules: recursive
- name: Powershell version
run: |
powershell -NoLogo -NonInteractive -NoProfile -Command '$PSVersionTable'
- name: Test
run: |
powershell -NoLogo -NonInteractive -NoProfile -Command '$VerbosePreference = "Continue"; ./test/test.ps1'
# test-powershell-5_1-windows-2019:
# runs-on: windows-2019
# steps:
# - uses: actions/checkout@v1
# with:
# submodules: recursive
# - name: Powershell version
# run: |
# powershell -NoLogo -NonInteractive -NoProfile -Command '$PSVersionTable'
# - name: Test
# run: |
# powershell -NoLogo -NonInteractive -NoProfile -Command '$VerbosePreference = "Continue"; ./test/test.ps1'

##########
# Docker #
##########
# Get powershell tags: https://mcr.microsoft.com/v2/powershell/tags/list
test-powershell-6_1-container:
runs-on: ubuntu-latest
container:
image: theohbrothers/docker-powershell:6.1.3-ubuntu-18.04-git
steps:
- uses: actions/checkout@v1
with:
submodules: recursive
- name: Powershell version
run: |
pwsh -NoLogo -NonInteractive -NoProfile -Command '$PSVersionTable'
- name: Ignore git permissions
run: |
git config --global --add safe.directory "$( pwd )"
- name: Test
run: |
pwsh -NoLogo -NonInteractive -NoProfile -Command '$VerbosePreference = "Continue"; ./test/test.ps1'
# test-powershell-6_1-container:
# runs-on: ubuntu-latest
# container:
# image: theohbrothers/docker-powershell:6.1.3-ubuntu-18.04-git
# steps:
# - uses: actions/checkout@v1
# with:
# submodules: recursive
# - name: Powershell version
# run: |
# pwsh -NoLogo -NonInteractive -NoProfile -Command '$PSVersionTable'
# - name: Ignore git permissions
# run: |
# git config --global --add safe.directory "$( pwd )"
# - name: Test
# run: |
# pwsh -NoLogo -NonInteractive -NoProfile -Command '$VerbosePreference = "Continue"; ./test/test.ps1'

test-powershell-6_2-container:
runs-on: ubuntu-latest
container:
image: theohbrothers/docker-powershell:6.2.4-ubuntu-18.04-git
steps:
- uses: actions/checkout@v1
with:
submodules: recursive
- name: Powershell version
run: |
pwsh -NoLogo -NonInteractive -NoProfile -Command '$PSVersionTable'
- name: Ignore git permissions
run: |
git config --global --add safe.directory "$( pwd )"
- name: Test
run: |
pwsh -NoLogo -NonInteractive -NoProfile -Command '$VerbosePreference = "Continue"; ./test/test.ps1'
# test-powershell-6_2-container:
# runs-on: ubuntu-latest
# container:
# image: theohbrothers/docker-powershell:6.2.4-ubuntu-18.04-git
# steps:
# - uses: actions/checkout@v1
# with:
# submodules: recursive
# - name: Powershell version
# run: |
# pwsh -NoLogo -NonInteractive -NoProfile -Command '$PSVersionTable'
# - name: Ignore git permissions
# run: |
# git config --global --add safe.directory "$( pwd )"
# - name: Test
# run: |
# pwsh -NoLogo -NonInteractive -NoProfile -Command '$VerbosePreference = "Continue"; ./test/test.ps1'

test-powershell-7_0-container:
runs-on: ubuntu-latest
container:
image: theohbrothers/docker-powershell:7.0.3-ubuntu-18.04-git
steps:
- uses: actions/checkout@v1
with:
submodules: recursive
- name: Powershell version
run: |
pwsh -NoLogo -NonInteractive -NoProfile -Command '$PSVersionTable'
- name: Ignore git permissions
run: |
git config --global --add safe.directory "$( pwd )"
- name: Test
run: |
pwsh -NoLogo -NonInteractive -NoProfile -Command '$VerbosePreference = "Continue"; ./test/test.ps1'
# test-powershell-7_0-container:
# runs-on: ubuntu-latest
# container:
# image: theohbrothers/docker-powershell:7.0.3-ubuntu-18.04-git
# steps:
# - uses: actions/checkout@v1
# with:
# submodules: recursive
# - name: Powershell version
# run: |
# pwsh -NoLogo -NonInteractive -NoProfile -Command '$PSVersionTable'
# - name: Ignore git permissions
# run: |
# git config --global --add safe.directory "$( pwd )"
# - name: Test
# run: |
# pwsh -NoLogo -NonInteractive -NoProfile -Command '$VerbosePreference = "Continue"; ./test/test.ps1'

test-powershell-7_1-container:
runs-on: ubuntu-latest
container:
image: theohbrothers/docker-powershell:7.1.5-ubuntu-20.04-git
steps:
- uses: actions/checkout@v1
with:
submodules: recursive
- name: Powershell version
run: |
pwsh -NoLogo -NonInteractive -NoProfile -Command '$PSVersionTable'
- name: Ignore git permissions
run: |
git config --global --add safe.directory "$( pwd )"
- name: Test
run: |
pwsh -NoLogo -NonInteractive -NoProfile -Command '$VerbosePreference = "Continue"; ./test/test.ps1'
# test-powershell-7_1-container:
# runs-on: ubuntu-latest
# container:
# image: theohbrothers/docker-powershell:7.1.5-ubuntu-20.04-git
# steps:
# - uses: actions/checkout@v1
# with:
# submodules: recursive
# - name: Powershell version
# run: |
# pwsh -NoLogo -NonInteractive -NoProfile -Command '$PSVersionTable'
# - name: Ignore git permissions
# run: |
# git config --global --add safe.directory "$( pwd )"
# - name: Test
# run: |
# pwsh -NoLogo -NonInteractive -NoProfile -Command '$VerbosePreference = "Continue"; ./test/test.ps1'

test-powershell-7_2-container:
runs-on: ubuntu-latest
container:
image: theohbrothers/docker-powershell:7.2-ubuntu-22.04-git
steps:
- uses: actions/checkout@v1
with:
submodules: recursive
- name: Powershell version
run: |
pwsh -NoLogo -NonInteractive -NoProfile -Command '$PSVersionTable'
- name: Ignore git permissions
run: |
git config --global --add safe.directory "$( pwd )"
- name: Test
run: |
pwsh -NoLogo -NonInteractive -NoProfile -Command '$VerbosePreference = "Continue"; ./test/test.ps1'
# test-powershell-7_2-container:
# runs-on: ubuntu-latest
# container:
# image: theohbrothers/docker-powershell:7.2-ubuntu-22.04-git
# steps:
# - uses: actions/checkout@v1
# with:
# submodules: recursive
# - name: Powershell version
# run: |
# pwsh -NoLogo -NonInteractive -NoProfile -Command '$PSVersionTable'
# - name: Ignore git permissions
# run: |
# git config --global --add safe.directory "$( pwd )"
# - name: Test
# run: |
# pwsh -NoLogo -NonInteractive -NoProfile -Command '$VerbosePreference = "Continue"; ./test/test.ps1'

test-powershell-7_3-container:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -208,16 +208,16 @@ jobs:

release:
needs:
- test-powershell-core-linux
- test-powershell-core-macos
- test-powershell-core-windows
# - test-powershell-core-linux
# - test-powershell-core-macos
# - test-powershell-core-windows
- test-powershell-5_1-windows-2022
- test-powershell-5_1-windows-2019
- test-powershell-6_1-container
- test-powershell-6_2-container
- test-powershell-7_0-container
- test-powershell-7_1-container
- test-powershell-7_2-container
# - test-powershell-5_1-windows-2019
# - test-powershell-6_1-container
# - test-powershell-6_2-container
# - test-powershell-7_0-container
# - test-powershell-7_1-container
# - test-powershell-7_2-container
- test-powershell-7_3-container
- test-powershell-7_4-container
runs-on: ubuntu-latest
Expand Down
Loading