Commit 8376233 1 parent 940a9a2 commit 8376233 Copy full SHA for 8376233
File tree 4 files changed +18
-15
lines changed
4 files changed +18
-15
lines changed Original file line number Diff line number Diff line change 5
5
branches :
6
6
- " *"
7
7
paths :
8
- - ' apps/user/**' # Only trigger for changes in the apps/user directory
8
+ - " apps/user/**" # Only trigger for changes in the apps/user directory
9
9
10
10
jobs :
11
11
test :
@@ -16,16 +16,16 @@ jobs:
16
16
- name : Use Node.js 18.x
17
17
uses : actions/setup-node@v3
18
18
with :
19
- node-version : ' 18.x'
19
+ node-version : " 18.x"
20
20
21
21
- name : Install dependencies for specific package
22
- run : yarn workspace greenstand-wallet-app-api install
22
+ run : yarn workspace user install
23
23
24
24
- name : Build TypeScript project
25
- run : yarn workspace greenstand-wallet-app-api build
25
+ run : yarn workspace user build
26
26
27
27
- name : Lint code with ESLint
28
- run : yarn workspace greenstand-wallet-app-api lint
28
+ run : yarn workspace user lint
29
29
30
30
- name : Run tests
31
- run : yarn workspace greenstand-wallet-app-api test
31
+ run : yarn workspace user test
Original file line number Diff line number Diff line change 1
1
name : Service CI/CD Pipeline to Release and Deploy to Dev Env
2
2
3
-
4
3
on :
5
4
push :
6
5
branches :
7
6
- main
8
7
paths :
9
- - ' apps/user/**' # Only trigger for changes in the apps/user directory
8
+ - " apps/user/**" # Only trigger for changes in the apps/user directory
10
9
11
10
jobs :
12
11
release :
@@ -20,10 +19,10 @@ jobs:
20
19
- name : Use Node.js 20.x
21
20
uses : actions/setup-node@v3
22
21
with :
23
- node-version : ' 20.x'
22
+ node-version : " 20.x"
24
23
25
24
- name : Yarn Clean Install
26
- run : yarn workspace greenstand-wallet-app-api install
25
+ run : yarn workspace user install
27
26
28
27
- name : Install Semantic Release
29
28
run : yarn global add semantic-release @semantic-release/{git,exec,changelog}
34
33
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
35
34
36
35
- name : Make Build
37
- run : yarn workspace greenstand-wallet-app-api build
36
+ run : yarn workspace user build
38
37
39
38
- name : Get NPM Version
40
39
id : package-version
@@ -54,12 +53,11 @@ jobs:
54
53
username : ${{ secrets.DOCKERHUB_USERNAME }}
55
54
password : ${{ secrets.DOCKERHUB_TOKEN }}
56
55
57
-
58
56
- name : Build and Push Docker Image
59
57
id : docker_build_release
60
58
uses : docker/build-push-action@v5
61
59
with :
62
- context : ./apps/user/
60
+ context : ./apps/user/
63
61
file : ./apps/user/Dockerfile
64
62
push : true
65
63
tags : greenstand/treetracker-wallet-monorepo-user-api:${{ steps.package-version.outputs.current-version }}
Original file line number Diff line number Diff line change @@ -26,11 +26,16 @@ jobs:
26
26
with :
27
27
runTests : false
28
28
29
+ - name : Jest unit tests 🧪
30
+ run : yarn workspace user test:unit
31
+
32
+ - name : Jest integration tests 🧪
33
+ run : yarn workspace user int-test
34
+
29
35
cypress-tests :
30
36
name : Run cypress unit tests
31
37
needs : install
32
38
runs-on : ubuntu-latest
33
-
34
39
steps :
35
40
- name : Checkout
36
41
uses : actions/checkout@v4
Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " greenstand-wallet-app-api " ,
2
+ "name" : " user " ,
3
3
"version" : " 0.0.1" ,
4
4
"description" : " " ,
5
5
"author" : " " ,
You can’t perform that action at this time.
0 commit comments