chore: bump github.com/hashicorp/go-getter from 1.7.5 to 1.7.8 in /shared #10609
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
| on: | |
| - pull_request | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| name: shared-build | |
| jobs: | |
| shared_changes: | |
| runs-on: ARM64 | |
| permissions: | |
| pull-requests: read | |
| outputs: | |
| run_shared_ci: ${{ steps.filter.outputs.dependencies }} | |
| steps: | |
| - name: Check for changed files | |
| uses: dorny/paths-filter@v2 | |
| id: filter | |
| with: | |
| filters: | | |
| dependencies: | |
| - '.github/**' | |
| - 'shared/**' | |
| lint-shared: | |
| needs: shared_changes | |
| if: ${{ needs.shared_changes.outputs.run_shared_ci == 'true' }} | |
| runs-on: ARM64 | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions/setup-go@v4 | |
| with: | |
| go-version-file: shared/go.mod | |
| cache: true | |
| - name: Run go mod tidy | |
| run: | | |
| cd shared && go mod tidy | |
| - name: golangci-lint | |
| uses: golangci/golangci-lint-action@v6 | |
| with: | |
| version: v1.63.4 | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| args: --timeout 20m0s -v | |
| working-directory: shared | |
| skip-pkg-cache: true | |
| test-shared: | |
| needs: shared_changes | |
| if: ${{ needs.shared_changes.outputs.run_shared_ci == 'true' }} | |
| runs-on: ARM64 | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions/setup-go@v4 | |
| with: | |
| go-version-file: shared/go.mod | |
| cache: true | |
| - name: Run go mod tidy | |
| run: | | |
| cd shared && go mod tidy | |
| - name: Run tests | |
| run: cd shared && make test | |
| update-go-mod: | |
| needs: shared_changes | |
| if: ${{ needs.shared_changes.outputs.run_shared_ci == 'true' }} | |
| runs-on: ARM64 | |
| steps: | |
| - name: Generate token | |
| id: generate_token | |
| uses: tibdex/github-app-token@v2 | |
| with: | |
| app_id: ${{ secrets.CZI_GITHUB_HELPER_APP_ID }} | |
| private_key: ${{ secrets.CZI_GITHUB_HELPER_PK }} | |
| - uses: actions/checkout@v3 | |
| with: | |
| token: ${{ steps.generate_token.outputs.token }} | |
| ref: ${{ github.event.pull_request.head.ref }} | |
| - uses: actions/setup-go@v4 | |
| with: | |
| go-version-file: shared/go.mod | |
| cache: true | |
| # run 'go mod tidy' in all the packages that depend on shared | |
| - name: Update shared/go.mod | |
| run: go mod tidy | |
| working-directory: ./shared | |
| - name: Update api/go.mod | |
| run: go mod tidy | |
| working-directory: ./api | |
| - name: Update cli/go.mod | |
| run: go mod tidy | |
| working-directory: ./cli | |
| - name: Update terraform/provider/go.mod | |
| run: go mod tidy | |
| working-directory: ./terraform/provider | |
| - uses: EndBug/add-and-commit@v9 | |
| with: | |
| add: -A | |
| message: ci - update go.mod |