Skip to content

add some specs for updated pending post promote flow #107

add some specs for updated pending post promote flow

add some specs for updated pending post promote flow #107

Workflow file for this run

name: "test"
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
env:
PGUSER: postgres
PGPASSWORD: postgres
PGHOST: 127.0.0.1
services:
postgres:
image: postgres:12
env:
POSTGRES_PASSWORD: postgres
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@master
- uses: leafo/gh-actions-lua@master
with:
luaVersion: "luajit-openresty"
buildCache: false
- uses: leafo/gh-actions-luarocks@master
- name: build
run: |
luarocks install busted
luarocks install moonscript
luarocks install cmark # optional dep
luarocks make
moonc schema.moon
moonc config.moon
moonc community
- name: setup db
run: |
psql -c 'create database community_test'
echo "return 'test'" > lapis_environment.lua
LAPIS_SHOW_QUERIES=1 lua -e 'require("schema").make_schema()'
- name: test
run: |
busted -o utfTerminal