From ef26bd59e92675bc1e0295a78b02c7a30d5c9d33 Mon Sep 17 00:00:00 2001 From: Stephen Adamson Date: Thu, 9 Jul 2026 17:22:23 +0100 Subject: [PATCH] ci: fix go-version to 1.26 (no patch) and clean up step names setup-go resolves '1.26' to latest patch (1.26.5). go.mod follows convention with minor version only. All CI steps now have descriptive names. Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus --- .gitea/workflows/ci.yaml | 41 +++++++++++++++++++++++----------------- backend/go.mod | 2 +- 2 files changed, 25 insertions(+), 18 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 02e9d01..48179f5 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -24,7 +24,7 @@ jobs: - uses: actions/setup-go@v5 with: - go-version: "1.26.5" + go-version: "1.26" cache: false - name: Cache Go modules @@ -42,7 +42,8 @@ jobs: mkdir -p /opt/hostedtoolcache/node/22.23.1/x64/bin ln -sf /usr/local/bin/node /opt/hostedtoolcache/node/22.23.1/x64/bin/node - - run: go build ./... + - name: Build + run: go build ./... working-directory: backend - name: Vet (dev tags) @@ -87,7 +88,7 @@ jobs: - uses: actions/setup-go@v5 with: - go-version: "1.26.5" + go-version: "1.26" cache: false - name: Cache Go modules @@ -105,15 +106,18 @@ jobs: mkdir -p /opt/hostedtoolcache/node/22.23.1/x64/bin ln -sf /usr/local/bin/node /opt/hostedtoolcache/node/22.23.1/x64/bin/node - - run: apk add --no-cache postgresql-client + - name: Install psql client + run: apk add --no-cache postgresql-client - - run: | + - name: Wait for Postgres + run: | for i in $(seq 1 30); do pg_isready -h postgres -U myuser && break sleep 1 done - - run: PGPASSWORD=mypassword psql -h postgres -U myuser -d mydb -c "CREATE DATABASE crussell_test_db;" 2>/dev/null || true + - name: Create test database + run: PGPASSWORD=mypassword psql -h postgres -U myuser -d mydb -c "CREATE DATABASE crussell_test_db;" 2>/dev/null || true - name: Test (${{ matrix.label }} tags) working-directory: backend @@ -154,7 +158,7 @@ jobs: - uses: actions/setup-go@v5 with: - go-version: "1.26.5" + go-version: "1.26" cache: false - name: Cache Go modules @@ -172,15 +176,18 @@ jobs: mkdir -p /opt/hostedtoolcache/node/22.23.1/x64/bin ln -sf /usr/local/bin/node /opt/hostedtoolcache/node/22.23.1/x64/bin/node - - run: apk add --no-cache postgresql-client build-base + - name: Install psql + build-base + run: apk add --no-cache postgresql-client build-base - - run: | + - name: Wait for Postgres + run: | for i in $(seq 1 30); do pg_isready -h postgres -U myuser && break sleep 1 done - - run: PGPASSWORD=mypassword psql -h postgres -U myuser -d mydb -c "CREATE DATABASE crussell_test_db;" 2>/dev/null || true + - name: Create test database + run: PGPASSWORD=mypassword psql -h postgres -U myuser -d mydb -c "CREATE DATABASE crussell_test_db;" 2>/dev/null || true - name: Race (${{ matrix.label }} tags) working-directory: backend @@ -201,7 +208,7 @@ jobs: - uses: actions/setup-go@v5 with: - go-version: "1.26.5" + go-version: "1.26" cache: false - name: Cache Go modules @@ -256,7 +263,7 @@ jobs: run: cd frontend && npm run build frontend-qc: - name: Frontend ${{ matrix.script }} + name: Frontend QC (${{ matrix.task }}) needs: [frontend-build] runs-on: ubuntu-latest defaults: @@ -265,11 +272,11 @@ jobs: strategy: matrix: include: - - script: typecheck + - task: typecheck cmd: npm run check - - script: lint + - task: lint cmd: npm run lint - - script: audit + - task: audit cmd: npm audit --audit-level=high steps: - uses: actions/checkout@v4 @@ -289,8 +296,8 @@ jobs: restore-keys: | ${{ runner.os }}-npm- - - name: Ensure dependencies + - name: Install dependencies run: cd frontend && npm ci - - name: ${{ matrix.script }} + - name: ${{ matrix.task }} run: cd frontend && ${{ matrix.cmd }} diff --git a/backend/go.mod b/backend/go.mod index b91bb53..36513df 100644 --- a/backend/go.mod +++ b/backend/go.mod @@ -1,6 +1,6 @@ module crussell -go 1.26.5 +go 1.26 require ( github.com/aws/aws-sdk-go-v2 v1.42.0