Skip to content

add test for artifact bulk fetch #799

add test for artifact bulk fetch

add test for artifact bulk fetch #799

name: Check DB schema structs
on:
pull_request:
push:
branches:
- 'main'
tags:
- 'v*'
permissions:
contents: read
jobs:
check-mysql-schema-structs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "1.24.4"
- name: Generate MySQL DB schema structs
run: make gen/gorm/mysql
- name: Check if there are uncommitted file changes
run: |
clean=$(git status --porcelain)
if [[ -z "$clean" ]]; then
echo "MySQL schema is up to date."
else
echo "Uncommitted file changes detected after generating MySQL schema: $clean"
git diff
exit 1
fi
check-postgres-schema-structs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "1.24.4"
- name: Generate PostgreSQL DB schema structs
run: make gen/gorm/postgres
- name: Check if there are uncommitted file changes
run: |
clean=$(git status --porcelain)
if [[ -z "$clean" ]]; then
echo "PostgreSQL schema is up to date."
else
echo "Uncommitted file changes detected after generating PostgreSQL schema: $clean"
git diff
exit 1
fi