@@ -15,10 +15,11 @@ jobs:
1515 node-version : [18.x, 20.x]
1616
1717 steps :
18- - uses : actions/checkout@v3
18+ - name : Checkout code
19+ uses : actions/checkout@v4
1920
20- - name : Use Node.js ${{ matrix.node-version }}
21- uses : actions/setup-node@v3
21+ - name : Setup Node.js ${{ matrix.node-version }}
22+ uses : actions/setup-node@v4
2223 with :
2324 node-version : ${{ matrix.node-version }}
2425 cache : ' npm'
@@ -28,73 +29,23 @@ jobs:
2829
2930 - name : Run unit tests
3031 run : npm run test:unit
31- env :
32- NODE_ENV : test
33- MONGO_CONNECTION_STRING : mongodb://localhost:27017/edms-test
34- SECRET_KEY : test-secret-key
35- AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
36- AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
37- AWS_REGION : us-east-1
38- AWS_S3_BUCKET : ${{ secrets.AWS_S3_BUCKET }}
39- 40- EMAIL_PASS : test-password
4132
4233 - name : Run integration tests
4334 run : npm run test:integration
44- env :
45- NODE_ENV : test
46- MONGO_CONNECTION_STRING : mongodb://localhost:27017/edms-test
47- SECRET_KEY : test-secret-key
48- AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
49- AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
50- AWS_REGION : us-east-1
51- AWS_S3_BUCKET : ${{ secrets.AWS_S3_BUCKET }}
52- 53- EMAIL_PASS : test-password
5435
5536 - name : Run security tests
5637 run : npm run test:security
57- env :
58- NODE_ENV : test
59- MONGO_CONNECTION_STRING : mongodb://localhost:27017/edms-test
60- SECRET_KEY : test-secret-key
61- AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
62- AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
63- AWS_REGION : us-east-1
64- AWS_S3_BUCKET : ${{ secrets.AWS_S3_BUCKET }}
65- 66- EMAIL_PASS : test-password
6738
6839 - name : Run performance tests
6940 run : npm run test:performance
70- env :
71- NODE_ENV : test
72- MONGO_CONNECTION_STRING : mongodb://localhost:27017/edms-test
73- SECRET_KEY : test-secret-key
74- AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
75- AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
76- AWS_REGION : us-east-1
77- AWS_S3_BUCKET : ${{ secrets.AWS_S3_BUCKET }}
78- 79- EMAIL_PASS : test-password
8041
8142 - name : Run CI tests
8243 run : npm run test:ci
83- env :
84- NODE_ENV : test
85- MONGO_CONNECTION_STRING : mongodb://localhost:27017/edms-test
86- SECRET_KEY : test-secret-key
87- AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
88- AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
89- AWS_REGION : us-east-1
90- AWS_S3_BUCKET : ${{ secrets.AWS_S3_BUCKET }}
91- 92- EMAIL_PASS : test-password
9344
9445 - name : Generate test coverage
9546 run : npm run test:coverage
9647
97- - name : Upload coverage to Codecov
48+ - name : Upload coverage reports
9849 uses : codecov/codecov-action@v3
9950 with :
10051 file : ./coverage/lcov.info
0 commit comments