-
Notifications
You must be signed in to change notification settings - Fork 7
51 lines (47 loc) · 1.79 KB
/
build.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: Build and Test
on:
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install and Build React Client
working-directory: ./frontend
run: |
npm ci
npm run test
env:
REACT_APP_API_URL: ${{secrets.REACT_APP_API_URL}}
CI: false
- name: Install and Build Express Server
working-directory: ./backend
run: |
npm ci
npm run test
env:
CLIENT_URL: ${{secrets.CLIENT_URL}}
MYSQL_DB: ${{secrets.MYSQL_DB}}
MYSQL_PORT: ${{secrets.MYSQL_PORT}}
MYSQL_CLOUD_USER: ${{secrets.MYSQL_CLOUD_USER}}
MYSQL_CLOUD_PASS: ${{secrets.MYSQL_CLOUD_PASS}}
MYSQL_CLOUD_HOST: ${{secrets.MYSQL_CLOUD_HOST}}
ACCESS_TOKEN_SECRET: ${{secrets.ACCESS_TOKEN_SECRET}}
REFRESH_TOKEN_SECRET: ${{secrets.REFRESH_TOKEN_SECRET}}
BUCKET_NAME: ${{secrets.BUCKET_NAME}}
BUCKET_REGION: ${{secrets.BUCKET_REGION}}
BUCKET_ACCESS_KEY: ${{secrets.BUCKET_ACCESS_KEY}}
BUCKET_SECRET_ACCESS_KEY: ${{secrets.BUCKET_SECRET_ACCESS_KEY}}
CLOUDFRONT_DISTRIBUTION_ID: ${{secrets.CLOUDFRONT_DISTRIBUTION_ID}}
CLOUDFRONT_KEY_PAIR_ID: ${{secrets.CLOUDFRONT_KEY_PAIR_ID}}
CLOUDFRONT_URL: ${{secrets.CLOUDFRONT_URL}}
SECRET_REGION: ${{secrets.SECRET_REGION}}
SECRET_SIGNING_KEY: ${{secrets.SECRET_SIGNING_KEY}}
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
TEST_USERNAME: ${{secrets.TEST_USERNAME}}
TEST_PASSWORD: ${{secrets.TEST_PASSWORD}}