Skip to content

Supabase API module

Supabase API module #7

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Scala CI
on:
pull_request:
push:
branches: [ "master" ]
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
java: 8
- os: ubuntu-latest
java: 11
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
- name: Initialize Supabase
run: |
npx supabase init
- name: Start Supabase
run: |
npx supabase start &
- name: Wait for Supabase to be ready
run: |
until curl --silent --fail http://localhost:54323; do
echo "Waiting for Supabase to start..."
sleep 5
done
echo "Supabase is ready."
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: ${{ matrix.java }}
- uses: sbt/setup-sbt@v1
- name: Create header and run scalafmt
run: sbt headerCreateAll scalafmtAll
- name: Build and Test
run: sbt -v +test
# Optional: This step uploads information to the GitHub dependency graph and unblocking Dependabot alerts for the repository
#- name: Upload dependency graph
# uses: scalacenter/sbt-dependency-submission@ab086b50c947c9774b70f39fc7f6e20ca2706c91