This repository has been archived by the owner on Jul 2, 2024. It is now read-only.
Merge pull request #228 from ColinLefter/testing-fix #136
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
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code, and run tests across different versions of the node | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs | |
name: Accord test runner | |
on: | |
push: | |
branches: main | |
env: | |
MONGODB_USERNAME: baopham | |
MONGODB_PASSWORD: Yjs12l26LZegm0VH | |
MONGODB_URI: mongodb+srv://<username>:<password>@accord-systems.umbugbv.mongodb.net/?retryWrites=true&w=majority&appName=Accord-Systems | |
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY: pk_test_Z2xvcmlvdXMtYmVhZ2xlLTM2LmNsZXJrLmFjY291bnRzLmRldiQ | |
CLERK_SECRET_KEY: sk_test_FbrDn6DyesXidciZhj5LVyMUgjyh08hAC9H6X7q6m1 | |
NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL: /accord | |
NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL: /accord | |
WEBHOOK_SECRET: whsec_2xyhjvv+4f1DxvoowVCy/KqktzHIAGrq | |
ABLY_API_KEY_PUBLISH_SUBSCRIBE: pCCwMA.ZM2nUg:83eVMGKAQuAxbo6uVgNCjThALEYbEwgRZPPBOqMssfY | |
defaults: | |
run: | |
working-directory: ./Application | |
jobs: | |
run-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "20.x" | |
- name: Checking the existence of the .env variables | |
run: echo "$MONGDODB_USERNAME" | |
- name: Installing node_modules for the workflow | |
run: npm install -g npm | |
- name: Force installing Jest for the workflow | |
run: npm install --save-dev jest | |
- name: Run tests suite with Jest | |
run: npm run test:jest |