Create LICENSE #68
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: Pull Request Checks | |
on: | |
pull_request: | |
branches: | |
- main | |
- dev | |
env: | |
SKIP_ENV_VALIDATION: "true" | |
jobs: | |
build_and_test: | |
name: Build and Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout branch | |
uses: actions/checkout@v3 | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
- name: Create .env file for build | |
uses: SpicyPizza/[email protected] | |
with: | |
directory: . | |
SKIP_ENV_VALIDATION: "true" | |
- name: Install dependencies | |
run: npm ci | |
- name: Build Next.js project | |
run: npm run build --if-present | |
- name: Run tests | |
run: npm run test --if-present |