Version Packages (#528) #375
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: push-main | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| ci-lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| permissions: | |
| id-token: write | |
| contents: read | |
| actions: read | |
| steps: | |
| - name: Linting Go | |
| uses: smartcontractkit/.github/actions/ci-lint-go@5ef875a78da521085ad768ecf2ed5e25009496f7 # ci-lint-go@2.0.0 | |
| with: | |
| golangci-lint-version: v2.1.6 | |
| use-go-cache: true | |
| only-new-issues: false | |
| ci-lint-e2e: | |
| name: Lint E2E tests | |
| runs-on: ubuntu-latest | |
| permissions: | |
| id-token: write | |
| contents: read | |
| actions: read | |
| steps: | |
| - name: Linting Go | |
| uses: smartcontractkit/.github/actions/ci-lint-go@5ef875a78da521085ad768ecf2ed5e25009496f7 # ci-lint-go@2.0.0 | |
| with: | |
| golangci-lint-version: v2.1.6 | |
| golangci-lint-args: --build-tags="e2e" | |
| use-go-cache: true | |
| only-new-issues: false | |
| ci-lint-misc: | |
| name: Lint GH Actions and scripts | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Linting Misc (yaml + sh files) | |
| uses: smartcontractkit/.github/actions/ci-lint-misc@9fc306ac63d8997c9ca0da283e56caaf71589f83 # ci-lint-misc@1.0.0 | |
| ci-test: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| id-token: write | |
| contents: read | |
| actions: read | |
| steps: | |
| - name: ci-test | |
| uses: smartcontractkit/.github/actions/ci-test-go@ci-test-go/1.0.0 | |
| with: | |
| go-test-cmd: go test -coverprofile=coverage.txt $(go list ./...) | |
| use-go-cache: true | |
| ci-test-e2e: | |
| name: Tests E2E | |
| runs-on: ubuntu-latest | |
| permissions: | |
| id-token: write | |
| contents: read | |
| actions: read | |
| steps: | |
| - name: Install Rust | |
| uses: moonrepo/setup-rust@ede6de059f8046a5e236c94046823e2af11ca670 # v1.2.2 | |
| - name: Install Solana | |
| uses: metaplex-foundation/actions/install-solana@2389940047edc63a5781911f6a53fbdf784748d8 # v1.0.4 | |
| with: | |
| version: 1.18.26 | |
| - name: Install Aptos CLI | |
| uses: aptos-labs/actions/install-aptos-cli@ce57287eb852b9819c1d74fecc3be187677559fd # v0.1 | |
| with: | |
| CLI_VERSION: 7.10.0 | |
| - name: Build and test | |
| uses: smartcontractkit/.github/actions/ci-test-go@ci-test-go/1.0.0 | |
| with: | |
| go-test-cmd: go generate -tags=e2e ./e2e/... && CTF_CONFIGS=../config.toml go test -tags=e2e -v ./e2e/tests/... | |
| use-go-cache: true | |
| cd-release: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| id-token: write | |
| contents: read | |
| steps: | |
| - name: cd-release | |
| uses: smartcontractkit/.github/actions/cicd-changesets@01d931b0455a754d12e7143cc54a5a3521a8f6f6 # cicd-changesets@0.3.6 | |
| with: | |
| # general inputs | |
| git-user: app-token-issuer-infra-releng[bot] | |
| git-email: app-token-issuer-infra-releng[bot]@users.noreply.github.com | |
| # aws inputs | |
| aws-region: ${{ secrets.AWS_REGION }} | |
| aws-role-arn: ${{ secrets.AWS_OIDC_MCMS_CI_CHANGESET_TOKEN_ISSUER_ROLE_ARN }} | |
| aws-lambda-url: ${{ secrets.GATI_LAMBDA_DEPLOYMENT_AUTOMATION_URL }} | |
| ci-sonarqube: | |
| name: Sonarqube Scan | |
| needs: [ ci-lint, ci-lint-misc, ci-test ] | |
| runs-on: ubuntu-latest | |
| if: github.actor != 'dependabot[bot]' | |
| steps: | |
| - name: Scanning with Sonarqube | |
| uses: smartcontractkit/.github/actions/ci-sonarqube-go@01d931b0455a754d12e7143cc54a5a3521a8f6f6 # ci-sonarqube-go@0.3.1 | |
| with: | |
| # sonarqube inputs | |
| sonar-token: ${{ secrets.SONAR_TOKEN }} | |
| sonar-host-url: ${{ secrets.SONAR_HOST_URL }} | |
| include-lint: true |