Merge pull request #57 from theohbrothers/docs/usage-improve-and-add-… #91
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci-master-pr | |
on: | |
push: | |
branches: | |
- master | |
tags: | |
- '**' | |
pull_request: | |
branches: | |
- master | |
jobs: | |
test-powershell-core-windows-2022: | |
runs-on: windows-2022 | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: '6' | |
- 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 | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: '6' | |
- 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 | |
- uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: '6' | |
- 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-0-container: | |
runs-on: ubuntu-latest | |
container: | |
image: theohbrothers/docker-powershell:6.0.4-ubuntu-16.04-git | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Install wget | |
run: | | |
apt-get update && apt-get install -y wget | |
- uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: '6' | |
- 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 | |
- name: Install wget | |
run: | | |
apt-get update && apt-get install -y wget | |
- uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: '6' | |
- 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 | |
- name: Install wget | |
run: | | |
apt-get update && apt-get install -y wget | |
- uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: '6' | |
- 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 | |
- name: Install wget | |
run: | | |
apt-get update && apt-get install -y wget | |
- uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: '6' | |
- 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 | |
- name: Install wget | |
run: | | |
apt-get update && apt-get install -y wget | |
- uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: '6' | |
- 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 | |
- name: Install wget | |
run: | | |
apt-get update && apt-get install -y wget | |
- uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: '6' | |
- 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 | |
container: | |
image: theohbrothers/docker-powershell:7.3-ubuntu-22.04-git | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Install wget | |
run: | | |
apt-get update && apt-get install -y wget | |
- uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: '6' | |
- 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-4-container: | |
runs-on: ubuntu-latest | |
container: | |
image: theohbrothers/docker-powershell:7.4-ubuntu-22.04-git | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Install wget | |
run: | | |
apt-get update && apt-get install -y wget | |
- uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: '6' | |
- 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' | |
update-draft-release: | |
needs: | |
- test-powershell-core-windows-2022 | |
- test-powershell-5-1-windows-2022 | |
- test-powershell-5-1-windows-2019 | |
- test-powershell-6-0-container | |
- 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 | |
if: github.ref == 'refs/heads/master' | |
runs-on: ubuntu-latest | |
steps: | |
# Drafts your next Release notes as Pull Requests are merged into "master" | |
- uses: release-drafter/release-drafter@v5 | |
with: | |
config-name: release-drafter.yml | |
publish: false | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
publish-draft-release: | |
needs: | |
- test-powershell-core-windows-2022 | |
- test-powershell-5-1-windows-2022 | |
- test-powershell-5-1-windows-2019 | |
- test-powershell-6-0-container | |
- 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 | |
if: startsWith(github.ref, 'refs/tags/') | |
runs-on: ubuntu-latest | |
steps: | |
# Drafts your next Release notes as Pull Requests are merged into "master" | |
- uses: release-drafter/release-drafter@v5 | |
with: | |
config-name: release-drafter.yml | |
publish: true | |
name: ${{ github.ref_name }} # E.g. 'master' or 'v1.2.3' | |
tag: ${{ github.ref_name }} # E.g. 'master' or 'v1.2.3' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |