Skip to content

provides environment vals #31

provides environment vals

provides environment vals #31

Workflow file for this run

name: Main workflow
on:
[push]
jobs:
build_and_test:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20.14.0'
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Build the Next.js application
env:
STRIPE_KEY: ${{ secrets.STRIPE_KEY }}
NEXTAUTH_URL: ${{secrets.NEXTAUTH_URL}}
NEXTAUTH_SECRET: ${{secrets.NEXTAUTH_SECRET}}
AUTH_GITHUB_ID: ${{secrets.AUTH_GITHUB_ID}}
AUTH_GITHUB_SECRET: ${{secrets.AUTH_GITHUB_SECRET}}
GOOGLE_CLIENT_ID: ${{secrets.GOOGLE_CLIENT_ID}}
GOOGLE_CLIENT_SECRET: ${{secrets.GOOGLE_CLIENT_SECRET}}
run: npm run build --if-present
- name: Code linting
run: npm run lint
- name: Run tests and collect coverage
run: npm run test
- name: Upload coverage to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}