Skip to content

contact form endpoint as environment variable (#1) #18

contact form endpoint as environment variable (#1)

contact form endpoint as environment variable (#1) #18

name: FrontendTest
on:
push:
branches:
- master
pull_request:
branches:
- master
env:
NEXT_PUBLIC_CONTACT_FORM_ENDPOINT: ${{ vars.NEXT_PUBLIC_CONTACT_FORM_ENDPOINT }}
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./frontend
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
- run: npm ci
- run: npm run build --if-present
- run: npm test
- run: npm run lint