Merge pull request #453 from Together-100Devs/githubActionsFix #1
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: 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 | |