-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (58 loc) · 2.04 KB
/
mainPR.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Main_Test
on:
pull_request:
branches: ["main"]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 18
- name: Install pnpm
run: npm install -g pnpm
- name: install dependencies
run: pnpm install
- name: Create JSON file
env:
TYPE: ${{ secrets.TYPE }}
PROJECT_ID: ${{ secrets.PROJECT_ID }}
PRIVATE_KEY_ID: ${{ secrets.PRIVATE_KEY_ID }}
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
CLIENT_EMAIL: ${{ secrets.CLIENT_EMAIL }}
CLIENT_ID: ${{ secrets.CLIENT_ID }}
AUTH_URI: ${{ secrets.AUTH_URI }}
TOKEN_URI: ${{ secrets.TOKEN_URI }}
AUTH_PROVIDER_URL: ${{ secrets.AUTH_PROVIDER_URL }}
CLIENT_CERT_URL: ${{ secrets.CLIENT_CERT_URL }}
UNIVERSE_DOMAIN: ${{ secrets.UNIVERSE_DOMAIN }}
run: |
echo '{
"type": "'"${TYPE}"'",
"project_id": "'"${PROJECT_ID}"'",
"private_key_id": "'"${PRIVATE_KEY_ID}"'",
"private_key": "'"${PRIVATE_KEY}"'",
"client_email": "'"${CLIENT_EMAIL}"'",
"client_id": "'"${CLIENT_ID}"'",
"auth_uri": "'"${AUTH_URI}"'",
"token_uri": "'"${TOKEN_URI}"'",
"auth_provider_x509_cert_url": "'"${AUTH_PROVIDER_URL}"'",
"client_x509_cert_url": "'"${CLIENT_CERT_URL}"'",
"universe_domain": "'"${UNIVERSE_DOMAIN}"'"
}' > ./apps/server/service-account.json
- name: build
run: pnpm turbo run build
- name: run unit tests
run: pnpm turbo run test
- name: run integration tests
run: pnpm turbo run test:integ
- name: download playwright browsers
run: pnpm exec playwright install
working-directory: ./apps/client
- name: run E2E tests
run: pnpm turbo run test:e2e