Skip to content

misc(DB) - add annotate --frozen to the GH workflow #1

misc(DB) - add annotate --frozen to the GH workflow

misc(DB) - add annotate --frozen to the GH workflow #1

Workflow file for this run

name: Make sure annotate is up to date
on:
push:
branches:
- 'main'
pull_request:
types: [opened, synchronize, reopened]
jobs:
run-spec:
name: Run Spec
runs-on: ubuntu-latest
services:
postgres:
image: postgres:14-alpine
ports:
- '5432:5432'
env:
POSTGRES_DB: lago
POSTGRES_USER: lago
POSTGRES_PASSWORD: lago
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Ruby and gems
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3.4'
bundler-cache: true
- name: Start Clickhouse database
run: |
docker run -d --rm -p 8123:8123 -p 9000:9000 --ulimit nofile=262144:262144 -v ./clickhouse-s3:/var/lib/clickhouse-s3 -v ./ci/clickhouse/config.xml:/etc/clickhouse-server/config.d/config.xml clickhouse/clickhouse-server
shell: bash
- name: Generate RSA keys
run: ./scripts/generate.rsa.sh
- name: Set up Postgres database schema
run: bin/rails db:schema:load:primary
- name: run annotate --frozen
run: annotate --frozen