fix: make the aws mock-generation script work again #2954
Workflow file for this run
This file contains 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
on: | |
- pull_request | |
name: CI | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
find-changed-packages: | |
runs-on: [ARM64, self-hosted, Linux] | |
outputs: | |
changedPackages: ${{ steps.changedGoPackages.outputs.changedGoPackages }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Find Changed Go Packages | |
id: changedGoPackages | |
uses: ./.github/actions/find-changed-packages | |
run-lint: | |
runs-on: [ARM64, self-hosted, Linux] | |
needs: find-changed-packages | |
if: ${{ needs.find-changed-packages.outputs.changedPackages != '[]' }} | |
strategy: | |
matrix: | |
gopkg: ${{ fromJson(needs.find-changed-packages.outputs.changedPackages) }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: ${{ matrix.gopkg }}/go.mod | |
- name: Run golangci-lint | |
uses: reviewdog/action-golangci-lint@v2 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
go_version_file: ${{ matrix.gopkg }}/go.mod | |
level: info | |
reporter: github-pr-review | |
golangci_lint_flags: "--config=../.golangci.yml --out-format=line-number -v --timeout 5m" | |
workdir: ${{ matrix.gopkg }} | |
run-tests: | |
runs-on: [ARM64, self-hosted, Linux] | |
needs: find-changed-packages | |
if: ${{ needs.find-changed-packages.outputs.changedPackages != '[]' }} | |
strategy: | |
matrix: | |
gopkg: ${{ fromJson(needs.find-changed-packages.outputs.changedPackages) }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: ${{ matrix.gopkg }}/go.mod | |
- name: Run tests | |
run: make test-ci | |
working-directory: ${{ matrix.gopkg }} | |
# this job exists to give us something to make a required check on that will ensure all CI runs are complete | |
run-ci-complete: | |
runs-on: [ARM64, self-hosted, Linux] | |
needs: | |
- run-tests | |
- run-lint | |
steps: | |
- run: echo "CI runs complete" |