Skip to content

Bump the all-go-deps group with 7 updates #1762

Bump the all-go-deps group with 7 updates

Bump the all-go-deps group with 7 updates #1762

Workflow file for this run

name: Test Go
on: [push, pull_request]
permissions:
contents: read
jobs:
test:
strategy:
matrix:
go-version: [1.22.x, 1.23.x]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
with:
go-version: ${{ matrix.go-version }}
- run: go test -v -race ./...
test-mysql:
env:
DB_DATABASE: test_tessera
DB_USER: root
DB_PASSWORD: root
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Start MySQL
run: |
sudo /etc/init.d/mysql start
mysql -e "CREATE DATABASE IF NOT EXISTS $DB_DATABASE;" -u$DB_USER -p$DB_PASSWORD
- name: Test with Go
run: go test -v -race ./storage/mysql/... -is_mysql_test_optional=false
test-aws-mysql:
env:
DB_DATABASE: test_tessera
DB_USER: root
DB_PASSWORD: root
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Start MySQL
run: |
sudo /etc/init.d/mysql start
mysql -e "CREATE DATABASE IF NOT EXISTS $DB_DATABASE;" -u$DB_USER -p$DB_PASSWORD
- name: Test with Go
# Parallel tests are disabled for the MySQL test database to always be in a known state.
run: go test -p=1 -v -race ./storage/aws/... -is_mysql_test_optional=false