File tree 4 files changed +657
-17
lines changed
4 files changed +657
-17
lines changed Original file line number Diff line number Diff line change
1
+ name : Deploy application
2
+
1
3
on :
2
4
push :
3
5
branches :
@@ -16,6 +18,7 @@ concurrency:
16
18
17
19
jobs :
18
20
deployment :
21
+ name : Perform deployment
19
22
runs-on : ubuntu-22.04
20
23
permissions : read-all
21
24
46
49
- name : Login to Heroku Container Registry
47
50
run : heroku container:login
48
51
49
- - name : Build Docker image for the bot
52
+ - name : Build Docker image
50
53
uses : docker/build-push-action@v5
51
54
with :
52
55
push : true
55
58
cache-from : type=gha
56
59
cache-to : type=gha,mode=max
57
60
58
- - name : Deploy the bot
61
+ - name : Deploy Docker image
59
62
run : heroku container:release worker --app codinglab-discord-bot
Original file line number Diff line number Diff line change 1
- name : Check Integration
1
+ name : Check integration
2
2
3
3
on :
4
4
pull_request :
@@ -49,14 +49,14 @@ jobs:
49
49
- name : Install dependencies
50
50
run : pnpm install --frozen-lockfile
51
51
52
- - name : Format project
53
- run : pnpm format
52
+ - name : Check code formatting
53
+ run : pnpm check: format
54
54
55
- - name : Type-check project
56
- run : pnpm typecheck
55
+ - name : Check code typing
56
+ run : pnpm check:types
57
57
58
- - name : Lint project
59
- run : pnpm lint
58
+ - name : Check code linting
59
+ run : pnpm check: lint
60
60
61
61
- name : Test project
62
62
run : pnpm test
Original file line number Diff line number Diff line change 8
8
"scripts" : {
9
9
"build" : " tsup-node src/main.ts" ,
10
10
"dev" : " tsup-node src/main.ts --watch --on-success \" clear && node --enable-source-maps -r dotenv/config dist/main.js\" " ,
11
- "lint" : " eslint src --report-unused-disable-directives" ,
12
- "format" : " prettier -c src" ,
13
- "typecheck" : " tsc --noEmit" ,
14
- "test" : " vitest"
11
+ "test" : " vitest" ,
12
+ "check:lint" : " eslint src --report-unused-disable-directives" ,
13
+ "check:format" : " prettier -c src" ,
14
+ "check:types" : " tsc --noEmit" ,
15
+ "check" : " run-s check:*"
15
16
},
16
17
"dependencies" : {
17
18
"@keyv/redis" : " 2.7.1" ,
36
37
"eslint-plugin-simple-import-sort" : " 10.0.0" ,
37
38
"eslint-plugin-sonarjs" : " 0.21.0" ,
38
39
"eslint-plugin-unused-imports" : " 3.0.0" ,
40
+ "npm-run-all" : " 4.1.5" ,
39
41
"prettier" : " 3.0.3" ,
40
42
"tsup" : " 7.2.0" ,
41
43
"type-fest" : " 4.4.0" ,
You can’t perform that action at this time.
0 commit comments