-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (46 loc) · 1.23 KB
/
clientBuildAndDeploy.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
# name: Client build and deploy
# on:
# push:
# branches:
# - main
# paths:
# - "client/**"
name: Run e2e tests
on:
pull_request:
branches:
- main
jobs:
deploy:
name: Build & Deploy
runs-on: ubuntu-22.04
defaults:
run:
working-directory: client
steps:
- name: Code checkout
uses: actions/checkout@v3
# Sets up a specific version of Node.js for use in the workflow
- name: Install NodeJS
uses: actions/setup-node@v3
with:
node-version: 20.x
# Installs your project dependencies using npm ci
- name: Install dependencies
run: npm ci
# Builds your application using your package.json's build script
- name: Build app
run: npm run build
# Run E2E tests
- name: Run E2E tests
run: npx playwright test
working-directory: ./server
# Deploys your application to AWS S3
# - name: Deploy
# run: |
# cd build
# aws s3 sync . s3://perntodo
# env:
# AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
# AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
# AWS_DEFAULT_REGION: us-east-1