-
Notifications
You must be signed in to change notification settings - Fork 111
51 lines (41 loc) · 1.09 KB
/
review-pull-request.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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