|
7 | 7 | - main |
8 | 8 |
|
9 | 9 | jobs: |
10 | | - ci-lint: |
11 | | - name: Lint |
12 | | - runs-on: ubuntu-latest |
13 | | - permissions: |
14 | | - id-token: write |
15 | | - contents: read |
16 | | - actions: read |
17 | | - steps: |
18 | | - - name: Linting Go |
19 | | - uses: smartcontractkit/.github/actions/ci-lint-go@ci-lint-go/v2 # ci-lint-go@2.0.0 |
20 | | - with: |
21 | | - only-new-issues: "false" |
22 | | - golangci-lint-version: v2.5.0 |
23 | | - |
24 | | - ci-lint-misc: |
25 | | - name: Lint GH Actions and scripts |
26 | | - runs-on: ubuntu-latest |
27 | | - permissions: |
28 | | - contents: read |
29 | | - steps: |
30 | | - - name: Linting Misc (yaml + sh files) |
31 | | - uses: smartcontractkit/.github/actions/ci-lint-misc@eeb76b5870e3c17856d5a60fd064a053c023b5f5 # ci-lint-misc@1.0.0 |
32 | | - |
33 | 10 | ci-test: |
34 | 11 | name: Tests |
35 | 12 | runs-on: ubuntu-latest |
36 | | - timeout-minutes: 10 |
37 | 13 | permissions: |
38 | 14 | id-token: write |
39 | 15 | contents: read |
40 | 16 | actions: read |
41 | 17 | steps: |
42 | | - - name: Build and test |
43 | | - uses: smartcontractkit/.github/actions/ci-test-go@dfcba48f05933158428bce867d790e3d5a9baa6b # ci-test-go@1.1.0 |
44 | | - with: |
45 | | - # disable the checkptr runtime check due a false positive in github.com/xssnick/tonutils-go |
46 | | - # causing tests in ci to fail "fatal error: checkptr: pointer arithmetic result points to invalid allocation" |
47 | | - # https://github.com/xssnick/tonutils-go/issues/310 |
48 | | - # Exclude provider packages which use Docker containers |
49 | | - go-test-cmd: go test -race -gcflags=all=-d=checkptr=0 -coverprofile=coverage.txt $(go list ./... | grep -v '/provider') |
50 | | - use-go-cache: true |
51 | | - artifact-name: unit-tests |
52 | | - |
53 | | - ci-test-provider: |
54 | | - name: Provider Tests |
55 | | - runs-on: ubuntu-latest |
56 | | - timeout-minutes: 10 |
57 | | - permissions: |
58 | | - id-token: write |
59 | | - contents: read |
60 | | - actions: read |
61 | | - steps: |
62 | | - - name: Build and test provider packages |
63 | | - uses: smartcontractkit/.github/actions/ci-test-go@dfcba48f05933158428bce867d790e3d5a9baa6b # ci-test-go@1.1.0 |
64 | | - with: |
65 | | - # disable the checkptr runtime check due a false positive in github.com/xssnick/tonutils-go |
66 | | - # causing tests in ci to fail "fatal error: checkptr: pointer arithmetic result points to invalid allocation" |
67 | | - # https://github.com/xssnick/tonutils-go/issues/310 |
68 | | - # -p 2 -parallel 3 = 2 packages, 3 tests max = 6 containers max |
69 | | - # Only run provider packages which use Docker containers |
70 | | - go-test-cmd: go test -race -gcflags=all=-d=checkptr=0 -p 2 -parallel 3 -coverprofile=coverage.txt $(go list ./... | grep '/provider') |
71 | | - use-go-cache: true |
72 | | - artifact-name: provider-tests |
73 | | - |
74 | | - sonarqube: |
75 | | - name: Sonar Scan |
76 | | - if: github.event_name == 'pull_request' |
77 | | - runs-on: ubuntu-24.04 |
78 | | - needs: [ci-test, ci-test-provider, ci-lint-misc, ci-lint] |
79 | | - permissions: |
80 | | - contents: read |
81 | | - actions: read |
82 | | - steps: |
83 | | - - name: Scan with Sonarqube |
84 | | - uses: smartcontractkit/.github/actions/ci-sonarqube-go@01d931b0455a754d12e7143cc54a5a3521a8f6f6 # ci-sonarqube-go@0.3.1 |
| 18 | + - name: Pull Catalog Service ECR Image |
| 19 | + uses: smartcontractkit/.github/actions/pull-private-ecr-image@2f8f0baf38e46140c6a119eb551a56eaaabcc09e # pull-private-ecr-image@1.0.0 |
85 | 20 | with: |
86 | | - sonar-token: ${{ secrets.SONAR_TOKEN }} |
87 | | - sonar-host-url: ${{ secrets.SONAR_HOST_URL }} |
| 21 | + aws-account-number: ${{ secrets.AWS_ACCOUNT_NUMBER_PROD }} |
| 22 | + aws-region: ${{ secrets.AWS_REGION }} |
| 23 | + aws-role-arn: ${{ secrets.ECR_READ_ROLE_ARN }} |
| 24 | + ecr-repository: "op-catalog-service" |
| 25 | + image-tag: "v0.0.1" |
| 26 | +# ci-lint: |
| 27 | +# name: Lint |
| 28 | +# runs-on: ubuntu-latest |
| 29 | +# permissions: |
| 30 | +# id-token: write |
| 31 | +# contents: read |
| 32 | +# actions: read |
| 33 | +# steps: |
| 34 | +# - name: Linting Go |
| 35 | +# uses: smartcontractkit/.github/actions/ci-lint-go@ci-lint-go/v2 # ci-lint-go@2.0.0 |
| 36 | +# with: |
| 37 | +# only-new-issues: "false" |
| 38 | +# golangci-lint-version: v2.5.0 |
| 39 | +# |
| 40 | +# ci-lint-misc: |
| 41 | +# name: Lint GH Actions and scripts |
| 42 | +# runs-on: ubuntu-latest |
| 43 | +# permissions: |
| 44 | +# contents: read |
| 45 | +# steps: |
| 46 | +# - name: Linting Misc (yaml + sh files) |
| 47 | +# uses: smartcontractkit/.github/actions/ci-lint-misc@eeb76b5870e3c17856d5a60fd064a053c023b5f5 # ci-lint-misc@1.0.0 |
| 48 | +# |
| 49 | +# ci-test: |
| 50 | +# name: Tests |
| 51 | +# runs-on: ubuntu-latest |
| 52 | +# timeout-minutes: 10 |
| 53 | +# permissions: |
| 54 | +# id-token: write |
| 55 | +# contents: read |
| 56 | +# actions: read |
| 57 | +# steps: |
| 58 | +# - name: Build and test |
| 59 | +# uses: smartcontractkit/.github/actions/ci-test-go@dfcba48f05933158428bce867d790e3d5a9baa6b # ci-test-go@1.1.0 |
| 60 | +# with: |
| 61 | +# # disable the checkptr runtime check due a false positive in github.com/xssnick/tonutils-go |
| 62 | +# # causing tests in ci to fail "fatal error: checkptr: pointer arithmetic result points to invalid allocation" |
| 63 | +# # https://github.com/xssnick/tonutils-go/issues/310 |
| 64 | +# # Exclude provider packages which use Docker containers |
| 65 | +# go-test-cmd: go test -race -gcflags=all=-d=checkptr=0 -coverprofile=coverage.txt $(go list ./... | grep -v '/provider') |
| 66 | +# use-go-cache: true |
| 67 | +# artifact-name: unit-tests |
| 68 | +# |
| 69 | +# ci-test-provider: |
| 70 | +# name: Provider Tests |
| 71 | +# runs-on: ubuntu-latest |
| 72 | +# timeout-minutes: 10 |
| 73 | +# permissions: |
| 74 | +# id-token: write |
| 75 | +# contents: read |
| 76 | +# actions: read |
| 77 | +# steps: |
| 78 | +# - name: Build and test provider packages |
| 79 | +# uses: smartcontractkit/.github/actions/ci-test-go@dfcba48f05933158428bce867d790e3d5a9baa6b # ci-test-go@1.1.0 |
| 80 | +# with: |
| 81 | +# # disable the checkptr runtime check due a false positive in github.com/xssnick/tonutils-go |
| 82 | +# # causing tests in ci to fail "fatal error: checkptr: pointer arithmetic result points to invalid allocation" |
| 83 | +# # https://github.com/xssnick/tonutils-go/issues/310 |
| 84 | +# # -p 2 -parallel 3 = 2 packages, 3 tests max = 6 containers max |
| 85 | +# # Only run provider packages which use Docker containers |
| 86 | +# go-test-cmd: go test -race -gcflags=all=-d=checkptr=0 -p 2 -parallel 3 -coverprofile=coverage.txt $(go list ./... | grep '/provider') |
| 87 | +# use-go-cache: true |
| 88 | +# artifact-name: provider-tests |
| 89 | +# |
| 90 | +# sonarqube: |
| 91 | +# name: Sonar Scan |
| 92 | +# if: github.event_name == 'pull_request' |
| 93 | +# runs-on: ubuntu-24.04 |
| 94 | +# needs: [ci-test, ci-test-provider, ci-lint-misc, ci-lint] |
| 95 | +# permissions: |
| 96 | +# contents: read |
| 97 | +# actions: read |
| 98 | +# steps: |
| 99 | +# - name: Scan with Sonarqube |
| 100 | +# uses: smartcontractkit/.github/actions/ci-sonarqube-go@01d931b0455a754d12e7143cc54a5a3521a8f6f6 # ci-sonarqube-go@0.3.1 |
| 101 | +# with: |
| 102 | +# sonar-token: ${{ secrets.SONAR_TOKEN }} |
| 103 | +# sonar-host-url: ${{ secrets.SONAR_HOST_URL }} |
0 commit comments