Move admin center / publish to env authentication to action rather than inline powershell #6260
This file contains hidden or 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 | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| Test: | |
| strategy: | |
| matrix: | |
| include: | |
| - os: windows-latest | |
| shell: powershell | |
| psVersion: PS5 | |
| - os: ubuntu-latest | |
| shell: pwsh | |
| psVersion: PS7 | |
| fail-fast: false | |
| runs-on: ${{ matrix.os }} | |
| name: Run tests on ${{ matrix.os }} (${{ matrix.psVersion }}) | |
| defaults: | |
| run: | |
| shell: ${{ matrix.shell }} | |
| steps: | |
| - name: Harden Runner | |
| if: github.repository_owner == 'microsoft' | |
| uses: step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2 | |
| with: | |
| egress-policy: audit | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Run AL-Go Actions Tests (${{ matrix.psVersion }}) | |
| run: | | |
| . (Join-Path "." "Tests/runtests.ps1") -Path "Tests" | |
| - name: Test AL-Go Workflows (${{ matrix.psVersion }}) | |
| if: github.repository_owner == 'microsoft' | |
| run: | | |
| . (Join-Path "." "Tests/runtests.ps1") -Path "Tests/WorkflowSanitation" | |
| - name: Test aka.ms links in markdown files (${{ matrix.psVersion }}) | |
| if: github.repository_owner == 'microsoft' | |
| run: | | |
| . (Join-Path "." "Tests/runtests.ps1") -Path "Tests/MarkdownLinks" |