go: bump cloud.google.com/go/storage from 1.56.1 to 1.56.2 #249
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
# NOTE: This name appears in GitHub's Checks API and in workflow's status badge. | |
name: ci-test | |
# Trigger the workflow when: | |
on: | |
# A push occurs to one of the matched branches. | |
push: | |
branches: | |
- master | |
paths-ignore: # Do not trigger if _only_ these files were changed. | |
- .punch_version.py | |
- .changelog/*.md | |
- CHANGELOG.md | |
# Or when a pull request event occurs for a pull request against one of the | |
# matched branches. | |
pull_request: | |
branches: | |
- master | |
paths-ignore: # Do not trigger if _only_ these files were changed. | |
- .punch_version.py | |
- .changelog/*.md | |
- CHANGELOG.md | |
permissions: | |
contents: read | |
# Cancel in-progress jobs on same branch. | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build-go: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v5 | |
- name: Set up Go | |
uses: actions/setup-go@v6 | |
with: | |
go-version: "1.25.x" | |
cache: true | |
- name: Build Go | |
run: | | |
make build | |
- name: Test Go unit tests | |
run: | | |
make test-unit | |
- name: Ensure dependencies are tidied up | |
run: | | |
go mod tidy -v -x -compat=1.25 # goreleaser does the same; can find lingering issues | |
echo TIDY RESULTS START; git diff || true; echo TIDY RESULTS END | |
# - name: Upload to codecov.io | |
# uses: codecov/[email protected] | |
# with: | |
# token: ${{ secrets.CODECOV_TOKEN }} | |
# file: ./coverage.txt | |
test-e2e: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v5 | |
- name: Set up Go | |
uses: actions/setup-go@v6 | |
with: | |
go-version: "1.25.x" | |
cache: true | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Build image | |
uses: docker/build-push-action@v6 | |
with: | |
context: . | |
file: docker/Dockerfile | |
push: false | |
load: true | |
tags: rofl-app-backend:latest | |
cache-from: type=gha | |
cache-to: type=gha,mode=max | |
- name: Start containers | |
run: | | |
docker compose up -d | |
- name: Confirm containers | |
run: | | |
docker ps -a | |
- name: Test e2e | |
run: | | |
make test-e2e-full | |
- name: Dump logs and DB contents | |
run: | | |
docker compose logs | tee /tmp/docker-compose.log | |
if: success() || failure() # but not if job is manually cancelled | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: docker-compose.log | |
path: | | |
/tmp/docker-compose.log | |
if: success() || failure() # but not if job is manually cancelled |