Bump ossf/scorecard-action from 2.3.0 to 2.3.1 (#42) #63
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: test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
permissions: # added using https://github.com/step-security/secure-repo | |
contents: read | |
jobs: | |
test: | |
strategy: | |
matrix: | |
runs-on: | |
- ubuntu-latest | |
- macos-latest | |
- windows-latest | |
runs-on: ${{ matrix.runs-on }} | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@1b05615854632b887b69ae1be8cbefe72d3ae423 # v2.6.0 | |
with: | |
egress-policy: audit | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0 | |
with: | |
go-version-file: './go.mod' | |
check-latest: true | |
- name: Install Mage | |
run: go run mage.go EnsureMage | |
- name: Run Tests in Bash | |
if: ${{ matrix.runs-on == 'ubuntu-latest' || matrix.runs-on == 'macos-latest' }} | |
run: mage test | |
shell: bash | |
env: | |
TEST_SHELL: bash | |
- name: Run Mage in CMD | |
if: ${{ matrix.runs-on == 'windows-latest' }} | |
run: mage test | |
shell: cmd | |
env: | |
TEST_SHELL: cmd | |
- name: Run Mage in PowerShell | |
if: ${{ matrix.runs-on == 'windows-latest' }} | |
run: mage test | |
shell: powershell | |
env: | |
TEST_SHELL: powershell | |
- name: Run Mage in Git Bash | |
if: ${{ matrix.runs-on == 'windows-latest' }} | |
run: mage test | |
shell: bash | |
env: | |
TEST_SHELL: mingw64 |