test: fix argument name in checks #182
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 | |
on: | |
push: | |
branches: | |
- "**" | |
env: | |
GO_VERSION: 1.22 | |
permissions: | |
id-token: write | |
contents: write | |
jobs: | |
lint: | |
name: Lint Code | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v2 | |
- uses: actions/setup-python@v3 | |
- uses: golangci/golangci-lint-action@v6 | |
with: | |
version: v1.59 | |
- run: | | |
pip install -r requirements.txt | |
mkdocs build -f ../../mkdocs.yaml --strict | |
pip uninstall -r requirements.txt --yes --no-input | |
working-directory: tests/docs | |
- run: npx prettier . --check | |
test: | |
name: Test | |
needs: [lint, snyk] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v2 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
- name: configure aws credentials | |
uses: aws-actions/[email protected] | |
with: | |
role-to-assume: ${{ secrets.ROLE_TO_ASSUME }} | |
role-session-name: GitHub_to_AWS_via_FederatedOIDC | |
aws-region: ${{ secrets.AWS_REGION }} | |
- run: make test | |
- uses: SonarSource/sonarcloud-github-action@master | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
snyk: | |
name: Snyk Scan | |
runs-on: ubuntu-latest | |
env: | |
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v3 | |
- uses: snyk/actions/setup@master | |
- run: | | |
python -m venv venv | |
source venv/bin/activate | |
pip install --upgrade pip | |
pip install -r requirements.txt | |
working-directory: tests/docs | |
- run: >- | |
snyk test | |
--severity-threshold=high | |
--all-projects | |
- run: >- | |
snyk code test | |
--severity-threshold=high | |
--all-projects | |
release: | |
name: Release | |
needs: [test, snyk] | |
if: github.ref == 'refs/heads/main' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: 20.8.1 | |
- run: npx semantic-release | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT_SEMANTIC_RELEASE }} |