Skip to content

🪸🪲 ↝ [SSG-61 SSG-54 SSC-34 SSG-63]: New onboarding/chapter-1 layout &… #76

🪸🪲 ↝ [SSG-61 SSG-54 SSC-34 SSG-63]: New onboarding/chapter-1 layout &…

🪸🪲 ↝ [SSG-61 SSG-54 SSC-34 SSG-63]: New onboarding/chapter-1 layout &… #76

Workflow file for this run

name: Build and CodeQL Analysis
on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
schedule:
- cron: '0 21 * * 0'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
- name: Install dependencies
run: yarn install
env:
NEXT_PUBLIC_SUPABASE_URL: ${{ secrets.NEXT_PUBLIC_SUPABASE_URL }}
NEXT_PUBLIC_SUPABASE_ANON_KEY: ${{ secrets.NEXT_PUBLIC_SUPABASE_ANON_KEY }}
- name: Build the app
run: yarn build
env:
NEXT_PUBLIC_SUPABASE_URL: ${{ secrets.NEXT_PUBLIC_SUPABASE_URL }}
NEXT_PUBLIC_SUPABASE_ANON_KEY: ${{ secrets.NEXT_PUBLIC_SUPABASE_ANON_KEY }}
- name: Cache node modules
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
codeql:
name: CodeQL Analysis
runs-on: ubuntu-latest
needs: build # Ensures the build job runs first
strategy:
fail-fast: false
matrix:
language: ['javascript']
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 2
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
- name: Autobuild
uses: github/codeql-action/autobuild@v1
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1