Skip to content

Merge pull request #16 from FastComments/fix-eu-event-log-host #20

Merge pull request #16 from FastComments/fix-eu-event-log-host

Merge pull request #16 from FastComments/fix-eu-event-log-host #20

Workflow file for this run

name: CI
# Runs on PRs and pushes to the default branch. We use `pull_request` (never
# `pull_request_target`), so secrets are NOT exposed to pull requests from forks.
on:
pull_request:
push:
branches: [main, master]
permissions:
contents: read
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '17'
# Run from the repo root (multi-module settings.gradle) so the generated client builds
# as a dependency. :core:test runs the SSO unit + integration tests; :pubsub:compileJava
# compile-checks the hand-written pubsub module against the client API. The init script
# substitutes the published com.fastcomments:client/core for the LOCAL projects so API
# renames in client break the build here instead of only at publish time.
- name: Run tests
run: |
chmod +x core/gradlew
./core/gradlew :core:test :pubsub:compileJava --init-script ci-local-client.gradle --no-daemon
env:
FASTCOMMENTS_API_KEY: ${{ secrets.FASTCOMMENTS_API_KEY }}
FASTCOMMENTS_TENANT_ID: ${{ secrets.FASTCOMMENTS_TENANT_ID }}