Expression editor: custom functions editor/builder (WIP) #5181
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run test | |
on: | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
services: | |
postgres: | |
image: postgis/postgis:12-3.0 | |
env: | |
POSTGRES_USER: arena | |
POSTGRES_PASSWORD: arena | |
POSTGRES_DB: of-arena-test | |
ports: | |
- 5444:5432 | |
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: microsoft/playwright-github-action@v1 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '20.11.1' | |
always-auth: true | |
auth-token: ${{secrets.ACCESS_TOKEN}} | |
registry-url: 'https://npm.pkg.github.com' | |
scope: '@openforis' | |
- name: Install pm2 | |
run: npm install pm2 -g | |
- name: Yarn | |
run: yarn | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.ACCESS_TOKEN }} | |
- name: Build | |
run: yarn build | |
- name: Run server | |
run: | | |
ln -s dist/server.js . | |
exec pm2-runtime server.js & | |
env: | |
PGHOST: localhost | |
PGPORT: 5444 | |
PGDATABASE: of-arena-test | |
PGUSER: arena | |
PGPASSWORD: arena | |
SESSION_ID_COOKIE_SECRET: my-cookie-secret-key | |
ADMIN_EMAIL: ${{secrets.ADMIN_EMAIL}} | |
SENDGRID_API_KEY: ${{secrets.SENDGRID_API_KEY}} | |
- name: Wait for server to start | |
run: while ! nc -z localhost 9090; do sleep 5; done; | |
- name: Run tests | |
run: yarn test | |
env: | |
PGHOST: localhost | |
PGPORT: 5444 | |
PGDATABASE: of-arena-test | |
PGUSER: arena | |
PGPASSWORD: arena |