-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (49 loc) · 1.48 KB
/
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
51
name: Pull-request
on: [pull_request]
jobs:
linting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- uses: pre-commit/[email protected]
jest-frontend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
- name: Prepare for Jest (frontend)
run: yarn install --frozen-lockfile
working-directory: ./services/ui-src
- name: Jest (frontend)
run: yarn test
working-directory: ./services/ui-src
jest-backend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
- name: Prepare for Jest (backend)
run: yarn install --frozen-lockfile
working-directory: ./services/app-api
- name: Jest (backend)
run: yarn test
working-directory: ./services/app-api
assignAuthor:
if: github.event.pull_request.user.type != 'Bot'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Assign PR to Creator
run: gh pr edit $PRNUM --add-assignee $PR_AUTHOR
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PRNUM: ${{ github.event.pull_request.number }}
PR_AUTHOR: ${{ github.event.pull_request.user.login }}