Refacto: Refacto API to App router #342
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: 'run tests' | |
on: | |
push: | |
branches: | |
- web-v2 | |
- main | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: 'Create env file' | |
run: | | |
touch .env | |
echo NEXTAUTH_SECRET="RANDOMEKEY" >> .env | |
echo JWT_SECRET="RANDOMEKEY" >> .env | |
echo OPENAI_API_KEY="RANDOMEKEY" >> .env | |
echo SKIP_SITEMAP_GENERATION="true" >> .env | |
cat .env | |
- name: Install dependencies | |
run: yarn install | |
- name: Run tests | |
run: yarn test:build | |
- name: Run build | |
run: yarn build |