Bump cuelang.org/go from 0.5.0 to 0.11.0 in the cue group across 1 directory #815
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
name: Build PR | |
on: | |
pull_request: | |
branches: | |
- main | |
- "lts/*" | |
jobs: | |
check: | |
name: Go Workspace Check | |
runs-on: ubuntu-latest | |
# Exlude dependabot from this check--it can't run make update-workspace, | |
# We'll just force the next PR author to do it instead for now | |
if: ${{ github.actor != 'dependabot[bot]' }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set go version | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: 'go.mod' | |
- name: Update workspace | |
run: make update-workspace | |
- name: Check for go mod & workspace changes | |
run: | | |
if ! git diff --exit-code --quiet; then | |
echo "Changes detected:" | |
git diff | |
echo "Please run 'make update-workspace' and commit the changes." | |
exit 1 | |
fi | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
# git checkout | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
# go env | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: 'go.mod' | |
# make lint | |
- name: Lint | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
version: v1.60.3 | |
only-new-issues: true | |
args: --timeout 5m $(go list -f '{{.Dir}}/...' -m | tr '\n' ' ') | |
test: | |
uses: ./.github/workflows/test.yml |