Skip to content

Merge pull request #958 from supabase/avallete/pgmeta-60-fastifyerror… #1751

Merge pull request #958 from supabase/avallete/pgmeta-60-fastifyerror…

Merge pull request #958 from supabase/avallete/pgmeta-60-fastifyerror… #1751

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- master
workflow_dispatch:
permissions:
contents: read
# Cancel old builds on new commit for same workflow + branch/PR
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
test:
name: Test
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- run: |
npm clean-install
npm run check
npm run test
- uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: coverage/lcov.info
prettier-check:
name: Prettier check
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
# Installing all dependencies takes up to three minutes, hacking around to only installing prettier+deps
- name: Download dependencies
run: |
rm package.json
rm package-lock.json
npm i prettier@3 prettier-plugin-sql@0.17.0
- name: Run prettier
run: |-
npx prettier -c '{src,test}/**/*.ts'
docker:
name: Build with docker
runs-on: ubuntu-22.04
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
name: Checkout Repo
- uses: docker/setup-buildx-action@v3
name: Set up Docker Buildx
- uses: docker/build-push-action@v5
with:
push: false
tags: pg-meta:test
load: true
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Check Health status
run: |
docker run -d --name pg-meta-test pg-meta:test
state=$(docker inspect -f '{{ .State.Health.Status}}' pg-meta-test)
if [ $state != "starting" ]; then
exit 1
fi
sleep 10
state=$(docker inspect -f '{{ .State.Health.Status}}' pg-meta-test)
docker stop pg-meta-test
if [ $state == "healthy" ]; then
exit 0
else
exit 1
fi
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy