[SYSE-372 master] Implement custom rules for enterprise artifacts in package promotion #1883
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: Linter | ||
| on: | ||
| push: | ||
| tags: | ||
| - v* | ||
| branches: | ||
| - master | ||
| - main | ||
| pull_request: | ||
| workflow_dispatch: | ||
| env: | ||
| TYK_PMP_ANALYTICSSTORAGETYPE: redis | ||
| TYK_PMP_ANALYTICSSTORAGECONFIG_TYPE: redis | ||
| TYK_PMP_ANALYTICSSTORAGECONFIG_HOST: localhost | ||
| TYK_PMP_ANALYTICSSTORAGECONFIG_PORT: 6379 | ||
| jobs: | ||
| gotest: | ||
| uses: TykTechnologies/github-actions/.github/workflows/gotest.yaml@main | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| go: [1.22.7] | ||
| with: | ||
| go: ${{ matrix.go }} | ||
| redis: 5 | ||
| mongo: 4.2 | ||
| test-options: "-count=1 -failfast -v" | ||
| golangci: | ||
| needs: gotest | ||
| if: ${{ always() }} | ||
| uses: TykTechnologies/github-actions/.github/workflows/golangci.yaml@main | ||
| with: | ||
| main_branch: "master" | ||
| go_version: 1.22.7 | ||
| sonarcloud: | ||
| if: ${{ always() }} | ||
| needs: [gotest, golangci] | ||
| uses: TykTechnologies/github-actions/.github/workflows/sonarcloud.yaml@main | ||
| with: | ||
| exclusions: "" | ||
| secrets: | ||
| GH_TOKEN: ${{ secrets.ORG_GH_TOKEN }} | ||
| SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||