Skip to content

Add fix for issue #443. Solution entails adding a conditional to chec… #191

Add fix for issue #443. Solution entails adding a conditional to chec…

Add fix for issue #443. Solution entails adding a conditional to chec… #191

name: Review Pull Request
on:
push:
branches:
- main
- development
pull_request:
branches:
- main
- development
permissions:
checks: write
contents: write
jobs:
review-pull-request:
name: Run tests to review pull requests
timeout-minutes: 10
runs-on: ubuntu-latest
environment: DEV
env:
DB_STRING: ${{ vars.DB_STRING }}
DISCORD_CLIENT_ID: ${{ secrets.DISCORD_CLIENT_ID }}
DISCORD_CLIENT_SECRET: ${{ secrets.DISCORD_CLIENT_SECRET }}
OAUTH_REDIRECT_URL: ${{ vars.OAUTH_REDIRECT_URL }}
MOCK_USER: ${{ vars.MOCK_USER }}
NODE_ENV: ${{ vars.NODE_ENV }}
steps:
- name: Check out Git repository
uses: actions/checkout@v3.3.0
- name: Set up Node.js
uses: actions/setup-node@v3.6.0
with:
node-version: 16.16.0
- name: Install Node.js dependencies
run: npm ci
- name: Run linters
uses: wearerequired/lint-action@v2
with:
eslint: true
- name: Run Front end test
run: npm run test-frontend