Merge pull request #310 from krymtkts:feature/benchmark #167
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 main | |
on: | |
push: | |
branches: ["main"] | |
workflow_dispatch: | |
permissions: | |
contents: read | |
security-events: write | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- windows-latest | |
- ubuntu-latest | |
- macos-latest | |
shell: | |
- pwsh | |
include: | |
- os: windows-latest | |
shell: pwsh | |
- os: windows-latest | |
shell: powershell | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Test | |
uses: ./.github/actions/test | |
with: | |
codecov_token: ${{ secrets.CODECOV_TOKEN }} | |
shell: ${{ matrix.shell }} | |
- name: Run Snyk to check for vulnerabilities | |
uses: snyk/actions/dotnet@master | |
# snyk/actions uses Container action that is only supported on Linux. | |
if: runner.os == 'Linux' | |
continue-on-error: true # To make sure that SARIF upload gets called | |
env: | |
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | |
with: | |
command: test | |
args: --all-projects --sarif-file-output=snyk.sarif --org=krymtkts | |
- name: Upload result to GitHub Code Scanning | |
if: runner.os == 'Linux' | |
uses: github/codeql-action/upload-sarif@v3 | |
with: | |
sarif_file: snyk.sarif |