Skip to content

chore: update course components and workflows, add eslint config and … #5

chore: update course components and workflows, add eslint config and …

chore: update course components and workflows, add eslint config and … #5

Workflow file for this run

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: Continuous Integration
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
build:
runs-on: ubuntu-latest
# Environment variables for CI testing
# All values are dummies - replace with real secrets for production
# Variables sourced from .env.example with dummy values
env:
NEXT_PUBLIC_BACKEND_URL: "http://dummy-backend.test"
BETTER_AUTH_SECRET: "dummy_auth_secret_32_chars_long_xxxx"
BETTER_AUTH_URL: "http://dummy-auth.test"
BETTER_DATABASE_URL: "postgres://dummy_user:dummy_pass@dummy.db/dummy_db"
GITHUB_CLIENT_ID: "dummy_github_client_id"
GITHUB_CLIENT_SECRET: "dummy_github_client_secret"
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
- run: npm install
- run: npm run lint
- run: npm run build --if-present