Skip to content

Commit a41b554

Browse files
committed
testing pulling catalog image
1 parent 9fcf5d6 commit a41b554

1 file changed

Lines changed: 85 additions & 70 deletions

File tree

.github/workflows/pull-request-main.yml

Lines changed: 85 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -7,81 +7,96 @@ on:
77
- main
88

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

0 commit comments

Comments
 (0)