File tree Expand file tree Collapse file tree 5 files changed +36
-147
lines changed
Expand file tree Collapse file tree 5 files changed +36
-147
lines changed Original file line number Diff line number Diff line change 3636 echo "AUTH_SECRET=${{ secrets.AUTH_SECRET }}" >> dev.env
3737 echo "JWT_EXPIRES_IN=${{ secrets.JWT_EXPIRES_IN }}" >> dev.env
3838 echo "PORT=${{ secrets.PORT }}" >> dev.env
39- build :
39+ test :
40+ runs-on : [self-hosted, dev]
4041 needs : create_env
42+ steps :
43+ - name : Run tests
44+ run : npm run test
45+ build :
46+ needs : [create_env, test]
4147 runs-on : [self-hosted, dev]
4248 steps :
4349 - name : Build website
Original file line number Diff line number Diff line change 3232 echo "AUTH_SECRET=${{ secrets.AUTH_SECRET }}" >> production.env
3333 echo "JWT_EXPIRES_IN=${{ secrets.JWT_EXPIRES_IN }}" >> production.env
3434 echo "PORT=${{ vars.PORT }}" >> production.env
35+ test :
36+ runs-on : [self-hosted, prod]
37+ steps :
38+ - name : Run tests
39+ run : npm run test
3540 build :
36- needs : create_env
41+ needs : [ create_env, test]
3742 runs-on : [self-hosted, prod]
3843 steps :
3944 - name : Build website
Original file line number Diff line number Diff line change 1+ name : Run tests
2+ on :
3+ push :
4+ pull_request :
5+ workflow_dispatch :
6+ jobs :
7+ test :
8+ runs-on : ubuntu-latest
9+ steps :
10+ - name : Get code
11+ uses : actions/checkout@v4
12+ - name : Cache dependencies
13+ id : cache
14+ uses : actions/cache@v4
15+ with :
16+ path : node_modules
17+ key : deps-node-modules-${{ hashFiles('**/package-lock.json') }}
18+ - name : Install dependencies
19+ if : steps.cache.outputs.cache-hit != 'true'
20+ run : npm ci
21+ - name : Run tests
22+ run : npm run test
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ import { SchoolModule } from './school/school.module';
4747 } ,
4848 {
4949 provide : 'APP_NAME' ,
50- useValue : 'The best Nest events backend' ,
50+ useValue : 'The Nest events application backend' ,
5151 } ,
5252 {
5353 provide : 'MESSAGE' ,
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments