Bump shell-quote from 1.8.2 to 1.8.4 in /cla-backend #1688
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
| --- | |
| # Copyright The Linux Foundation and each contributor to CommunityBridge. | |
| # SPDX-License-Identifier: MIT | |
| name: Build and Test Pull Request | |
| on: | |
| pull_request: | |
| branches: | |
| - dev | |
| permissions: | |
| id-token: write | |
| contents: read | |
| pull-requests: write | |
| env: | |
| AWS_REGION: us-east-1 | |
| STAGE: dev | |
| DD_VERSION: ${{ github.sha }} | |
| jobs: | |
| build-test-lint: | |
| runs-on: ubuntu-latest | |
| environment: dev | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.25' | |
| - name: Go Version | |
| run: go version | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - name: Setup python (swagger tooling) | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| cache: 'pip' | |
| cache-dependency-path: cla-backend-go/swagger/requirements.txt | |
| - name: Cache Go modules | |
| uses: actions/cache@v4 | |
| with: | |
| path: ${{ github.workspace }}/go/pkg/mod | |
| key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
| restore-keys: | | |
| ${{ runner.os }}-go- | |
| - name: Configure Git to clone private Github repos | |
| if: github.event.pull_request.head.repo.full_name == github.repository | |
| run: git config --global url."https://${TOKEN_USER}:${TOKEN}@github.com".insteadOf "https://github.com" | |
| env: | |
| TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN_GITHUB }} | |
| TOKEN_USER: ${{ secrets.PERSONAL_ACCESS_TOKEN_USER_GITHUB }} | |
| - name: Note - cla-backend-go checks skipped (fork PR, no private module access) | |
| if: github.event.pull_request.head.repo.full_name != github.repository | |
| run: | | |
| echo "::notice title=Fork PR::cla-backend-go build/test/lint skipped — private github.com/LF-Engineering/* modules are not accessible from fork PRs. These checks will run on merge." | |
| - name: Add OS Tools | |
| run: sudo apt update && sudo apt-get install file -y | |
| - name: Go Setup | |
| if: github.event.pull_request.head.repo.full_name == github.repository | |
| working-directory: cla-backend-go | |
| run: make clean setup | |
| - name: Go Dependencies | |
| if: github.event.pull_request.head.repo.full_name == github.repository | |
| working-directory: cla-backend-go | |
| run: make deps | |
| - name: Go Swagger Generate | |
| if: github.event.pull_request.head.repo.full_name == github.repository | |
| working-directory: cla-backend-go | |
| run: make swagger | |
| - name: Go Build | |
| if: github.event.pull_request.head.repo.full_name == github.repository | |
| working-directory: cla-backend-go | |
| run: | | |
| make build-lambdas-linux build-functional-tests-linux | |
| - name: Go Test | |
| if: github.event.pull_request.head.repo.full_name == github.repository | |
| working-directory: cla-backend-go | |
| run: make test | |
| - name: Go Lint | |
| if: github.event.pull_request.head.repo.full_name == github.repository | |
| working-directory: cla-backend-go | |
| run: make lint | |
| - name: Go Setup CLA Legacy Backend | |
| working-directory: cla-backend-legacy | |
| run: | | |
| go mod tidy | |
| - name: Go Build CLA Legacy Backend | |
| working-directory: cla-backend-legacy | |
| run: | | |
| make lambdas | |
| - name: Go Test CLA Legacy Backend | |
| working-directory: cla-backend-legacy | |
| run: go test ./... | |
| - name: Go Lint CLA Legacy Backend | |
| working-directory: cla-backend-legacy | |
| run: make lint | |
| - name: Go Setup CLA SSS Base | |
| working-directory: cla-sss-base | |
| run: | | |
| go mod tidy | |
| - name: Go Build CLA SSS Base | |
| working-directory: cla-sss-base | |
| run: go build ./... | |
| - name: Go Test CLA SSS Base | |
| working-directory: cla-sss-base | |
| run: go test ./... | |
| - name: Go Lint CLA SSS Base | |
| working-directory: cla-sss-base | |
| run: | | |
| go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.64.8 | |
| golangci-lint run ./... |