8000 Units tests for /lib/validation/ implemented and operational · MrF1ow/Foodable@03b16ff · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Units tests for /lib/validation/ implemented and operational #37 9684 8

Units tests for /lib/validation/ implemented and operational

Units tests for /lib/validation/ implemented and operational #378

name: Build and Test
on:
push:
branches:
- "*"
pull_request:
branches:
- "*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: "20"
- name: Install dependencies
working-directory: frontend
run: npm install
- name: Run Jest tests
working-directory: frontend
env:
MONGODB_URI: ${{ secrets.MONGODB_URI }}
NODE_ENV: ${{ secrets.NODE_ENV }}
CLERK_SECRET_KEY: ${{ secrets.CLERK_SECRET_KEY }}
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY: ${{ secrets.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY }}
NEXT_PUBLIC_CLERK_SIGN_IN_URL: ${{ secrets.NEXT_PUBLIC_CLERK_SIGN_IN_URL }}
NEXT_PUBLIC_CLERK_SIGN_OUT_URL: ${{ secrets.NEXT_PUBLIC_CLERK_SIGN_OUT_URL }}
run: npm test
- name: Start application in background
working-directory: frontend
env:
MONGODB_URI: ${{ secrets.MONGODB_URI }}
NODE_ENV: ${{ secrets.NODE_ENV }}
CLERK_SECRET_KEY: ${{ secrets.CLERK_SECRET_KEY }}
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY: ${{ secrets.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY }}
NEXT_PUBLIC_CLERK_SIGN_IN_URL: ${{ secrets.NEXT_PUBLIC_CLERK_SIGN_IN_URL }}
NEXT_PUBLIC_CLERK_SIGN_OUT_URL: ${{ secrets.NEXT_PUBLIC_CLERK_SIGN_OUT_URL }}
run: npm run dev
- name: Run Postman tests
run: |
npm install -g newman
newman run postman/Foodable.postman_collection.json --environment postman/Foodable.postman_environment.json
- name: Run Cypress tests
working-directory: frontend
env:
CLERK_PUBLISHABLE_KEY: ${{ secrets.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY }}
CLERK_SECRET_KEY: ${{ secrets.CLERK_SECRET_KEY }}
run: npx cypress run
0