Skip to content

ci: move dry-run to a parallel workflow #1

ci: move dry-run to a parallel workflow

ci: move dry-run to a parallel workflow #1

Workflow file for this run

name: CI
on:
push:
# Run on all branches in our repo, so that we test dry-run for our PRs too
# branches: [main]
# Don't run on forks, which don't have access to secrets
# pull_request:
# branches: [main]
jobs:
build:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:latest
env:
POSTGRES_DB: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
env:
DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- name: Evaluate the last Spark round in dry-run mode
# Don't run on forks, which don't have access to secrets
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
run: node bin/dry-run.js
env:
GLIF_TOKEN: ${{ secrets.GLIF_TOKEN }}