|
25 | 25 | github.event_name == 'push' || |
26 | 26 | github.event_name == 'workflow_dispatch' || |
27 | 27 | (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) |
| 28 | + permissions: |
| 29 | + statuses: write |
28 | 30 | env: |
29 | 31 | REGION_NAME: us-east-1 |
30 | 32 | STACK_NAME: s3cli-iam |
|
87 | 89 | region_name: ${{ env.REGION_NAME }} |
88 | 90 | stack_name: ${{ env.STACK_NAME }} |
89 | 91 |
|
| 92 | + - name: Report fork PR status |
| 93 | + if: always() && inputs.pr_ref != '' |
| 94 | + uses: ./.github/actions/report-fork-status |
| 95 | + with: |
| 96 | + pr_ref: ${{ inputs.pr_ref }} |
| 97 | + |
90 | 98 | aws-s3-regional-integration: |
91 | 99 | name: AWS S3 ${{ matrix.name }} Integration |
92 | 100 | runs-on: ubuntu-latest |
|
95 | 103 | github.event_name == 'push' || |
96 | 104 | github.event_name == 'workflow_dispatch' || |
97 | 105 | (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) |
| 106 | + permissions: |
| 107 | + statuses: write |
98 | 108 | strategy: |
99 | 109 | fail-fast: false |
100 | 110 | matrix: |
@@ -154,29 +164,44 @@ jobs: |
154 | 164 | region_name: ${{ matrix.region_name }} |
155 | 165 | stack_name: ${{ matrix.stack_name }} |
156 | 166 |
|
| 167 | + - name: Report fork PR status |
| 168 | + if: always() && inputs.pr_ref != '' |
| 169 | + uses: ./.github/actions/report-fork-status |
| 170 | + with: |
| 171 | + pr_ref: ${{ inputs.pr_ref }} |
| 172 | + |
157 | 173 | s3-compatible-integration: |
158 | | - name: S3 Compatible Integration |
159 | | - runs-on: ubuntu-latest |
160 | | - # Run on push/workflow_dispatch, skip fork PRs |
161 | | - if: | |
162 | | - github.event_name == 'push' || |
163 | | - github.event_name == 'workflow_dispatch' || |
164 | | - (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) |
165 | | - steps: |
166 | | - - name: Checkout code |
167 | | - uses: actions/checkout@v7 |
168 | | - with: |
169 | | - ref: ${{ inputs.pr_ref || github.sha }} |
170 | | - |
171 | | - - name: Set up test environment |
172 | | - uses: ./.github/actions/go-test-bootstrap |
173 | | - |
174 | | - - name: Run GCS S3 compatible tests |
175 | | - run: | |
176 | | - export access_key_id="${{ secrets.GCP_ACCESS_KEY_ID }}" |
177 | | - export secret_access_key="${{ secrets.GCP_SECRET_ACCESS_KEY }}" |
178 | | - export bucket_name=storage-cli-test-aws-compat |
179 | | - export s3_endpoint_host=storage.googleapis.com |
180 | | - export s3_endpoint_port=443 |
181 | | - export label_filter='s3-compatible' |
182 | | - ./.github/scripts/s3/run-integration-s3-compat.sh |
| 174 | + name: S3 Compatible Integration |
| 175 | + runs-on: ubuntu-latest |
| 176 | + # Run on push/workflow_dispatch, skip fork PRs |
| 177 | + if: | |
| 178 | + github.event_name == 'push' || |
| 179 | + github.event_name == 'workflow_dispatch' || |
| 180 | + (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) |
| 181 | + permissions: |
| 182 | + statuses: write |
| 183 | + steps: |
| 184 | + - name: Checkout code |
| 185 | + uses: actions/checkout@v7 |
| 186 | + with: |
| 187 | + ref: ${{ inputs.pr_ref || github.sha }} |
| 188 | + |
| 189 | + - name: Set up test environment |
| 190 | + uses: ./.github/actions/go-test-bootstrap |
| 191 | + |
| 192 | + - name: Run GCS S3 compatible tests |
| 193 | + run: | |
| 194 | + export access_key_id="${{ secrets.GCP_ACCESS_KEY_ID }}" |
| 195 | + export secret_access_key="${{ secrets.GCP_SECRET_ACCESS_KEY }}" |
| 196 | + export bucket_name=storage-cli-test-aws-compat |
| 197 | + export s3_endpoint_host=storage.googleapis.com |
| 198 | + export s3_endpoint_port=443 |
| 199 | + export label_filter='s3-compatible' |
| 200 | + ./.github/scripts/s3/run-integration-s3-compat.sh |
| 201 | +
|
| 202 | + - name: Report fork PR status |
| 203 | + if: always() && inputs.pr_ref != '' |
| 204 | + uses: ./.github/actions/report-fork-status |
| 205 | + with: |
| 206 | + pr_ref: ${{ inputs.pr_ref }} |
| 207 | + |
0 commit comments