Feature/signed in home page fixes #319
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: App Test | |
on: | |
pull_request: | |
branches: | |
- dev | |
- main | |
paths: | |
- 'query-builder-app/**' | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./query-builder-app/ | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: '9.1.2' | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: 'pnpm' | |
cache-dependency-path: query-builder-app/pnpm-lock.yaml | |
- name: Install Dependencies | |
run: pnpm install --frozen-lockfile | |
working-directory: query-builder-app | |
- name: App Make env file | |
run: | | |
touch .env | |
echo NEXT_PUBLIC_SUPABASE_URL = ${{ secrets.SUPABASE_URL }} >> .env | |
echo NEXT_PUBLIC_SUPABASE_ANON_KEY = ${{ secrets.SUPABASE_ANON_KEY }} >> .env | |
echo NEXT_PUBLIC_SUPABASE_PROJECT_ID = ${{ secrets.SUPABASE_SERVICE_ROLE_KEY}} >> .env | |
echo NEXT_PUBLIC_BACKEND_URL = ${{ secrets.NEXT_PUBLIC_BACKEND_URL }} >> .env | |
cat .env | |
working-directory: query-builder-app | |
- name: Test | |
run: pnpm test | |
working-directory: query-builder-app |