ci: fix go-version to 1.26 (no patch) and clean up step names
CI / Go vulnerabilities (push) Successful in 34s
CI / Build & Vet (push) Successful in 43s
CI / Frontend build (gate) (push) Successful in 54s
CI / Frontend QC (audit) (push) Successful in 1m4s
CI / Tests (prod) (push) Successful in 1m56s
CI / Tests (dev) (push) Successful in 1m55s
CI / Frontend QC (typecheck) (push) Successful in 2m38s
CI / Frontend QC (lint) (push) Successful in 2m41s
CI / Race (prod) (push) Successful in 5m8s
CI / Race (dev) (push) Successful in 6m58s
CI / Go vulnerabilities (push) Successful in 34s
CI / Build & Vet (push) Successful in 43s
CI / Frontend build (gate) (push) Successful in 54s
CI / Frontend QC (audit) (push) Successful in 1m4s
CI / Tests (prod) (push) Successful in 1m56s
CI / Tests (dev) (push) Successful in 1m55s
CI / Frontend QC (typecheck) (push) Successful in 2m38s
CI / Frontend QC (lint) (push) Successful in 2m41s
CI / Race (prod) (push) Successful in 5m8s
CI / Race (dev) (push) Successful in 6m58s
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 <clio-agent@sisyphuslabs.ai>
This commit is contained in:
+24
-17
@@ -24,7 +24,7 @@ jobs:
|
|||||||
|
|
||||||
- uses: actions/setup-go@v5
|
- uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: "1.26.5"
|
go-version: "1.26"
|
||||||
cache: false
|
cache: false
|
||||||
|
|
||||||
- name: Cache Go modules
|
- name: Cache Go modules
|
||||||
@@ -42,7 +42,8 @@ jobs:
|
|||||||
mkdir -p /opt/hostedtoolcache/node/22.23.1/x64/bin
|
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
|
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
|
working-directory: backend
|
||||||
|
|
||||||
- name: Vet (dev tags)
|
- name: Vet (dev tags)
|
||||||
@@ -87,7 +88,7 @@ jobs:
|
|||||||
|
|
||||||
- uses: actions/setup-go@v5
|
- uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: "1.26.5"
|
go-version: "1.26"
|
||||||
cache: false
|
cache: false
|
||||||
|
|
||||||
- name: Cache Go modules
|
- name: Cache Go modules
|
||||||
@@ -105,15 +106,18 @@ jobs:
|
|||||||
mkdir -p /opt/hostedtoolcache/node/22.23.1/x64/bin
|
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
|
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
|
for i in $(seq 1 30); do
|
||||||
pg_isready -h postgres -U myuser && break
|
pg_isready -h postgres -U myuser && break
|
||||||
sleep 1
|
sleep 1
|
||||||
done
|
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)
|
- name: Test (${{ matrix.label }} tags)
|
||||||
working-directory: backend
|
working-directory: backend
|
||||||
@@ -154,7 +158,7 @@ jobs:
|
|||||||
|
|
||||||
- uses: actions/setup-go@v5
|
- uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: "1.26.5"
|
go-version: "1.26"
|
||||||
cache: false
|
cache: false
|
||||||
|
|
||||||
- name: Cache Go modules
|
- name: Cache Go modules
|
||||||
@@ -172,15 +176,18 @@ jobs:
|
|||||||
mkdir -p /opt/hostedtoolcache/node/22.23.1/x64/bin
|
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
|
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
|
for i in $(seq 1 30); do
|
||||||
pg_isready -h postgres -U myuser && break
|
pg_isready -h postgres -U myuser && break
|
||||||
sleep 1
|
sleep 1
|
||||||
done
|
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)
|
- name: Race (${{ matrix.label }} tags)
|
||||||
working-directory: backend
|
working-directory: backend
|
||||||
@@ -201,7 +208,7 @@ jobs:
|
|||||||
|
|
||||||
- uses: actions/setup-go@v5
|
- uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: "1.26.5"
|
go-version: "1.26"
|
||||||
cache: false
|
cache: false
|
||||||
|
|
||||||
- name: Cache Go modules
|
- name: Cache Go modules
|
||||||
@@ -256,7 +263,7 @@ jobs:
|
|||||||
run: cd frontend && npm run build
|
run: cd frontend && npm run build
|
||||||
|
|
||||||
frontend-qc:
|
frontend-qc:
|
||||||
name: Frontend ${{ matrix.script }}
|
name: Frontend QC (${{ matrix.task }})
|
||||||
needs: [frontend-build]
|
needs: [frontend-build]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
defaults:
|
defaults:
|
||||||
@@ -265,11 +272,11 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- script: typecheck
|
- task: typecheck
|
||||||
cmd: npm run check
|
cmd: npm run check
|
||||||
- script: lint
|
- task: lint
|
||||||
cmd: npm run lint
|
cmd: npm run lint
|
||||||
- script: audit
|
- task: audit
|
||||||
cmd: npm audit --audit-level=high
|
cmd: npm audit --audit-level=high
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@@ -289,8 +296,8 @@ jobs:
|
|||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-npm-
|
${{ runner.os }}-npm-
|
||||||
|
|
||||||
- name: Ensure dependencies
|
- name: Install dependencies
|
||||||
run: cd frontend && npm ci
|
run: cd frontend && npm ci
|
||||||
|
|
||||||
- name: ${{ matrix.script }}
|
- name: ${{ matrix.task }}
|
||||||
run: cd frontend && ${{ matrix.cmd }}
|
run: cd frontend && ${{ matrix.cmd }}
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
module crussell
|
module crussell
|
||||||
|
|
||||||
go 1.26.5
|
go 1.26
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/aws/aws-sdk-go-v2 v1.42.0
|
github.com/aws/aws-sdk-go-v2 v1.42.0
|
||||||
|
|||||||
Reference in New Issue
Block a user