File tree Expand file tree Collapse file tree 3 files changed +19
-14
lines changed Expand file tree Collapse file tree 3 files changed +19
-14
lines changed Original file line number Diff line number Diff line change 1414 - .github/workflows/**.yml
1515
1616jobs :
17- # test:
18- # runs-on: ubuntu-latest
19- # steps:
20- # - uses: actions/checkout@v4
21- # - uses: actions/setup-node@v4
22- # with:
23- # node-version-file: ".nvmrc"
24- # - run: |
25- # npm install --silent
26- # npm test
17+ test :
18+ runs-on : ubuntu-latest
19+ steps :
20+ - uses : actions/checkout@v4
21+ - uses : actions/setup-node@v4
22+ with :
23+ node-version-file : " .nvmrc"
24+
25+ - run : |
26+ echo "ACCESSKEY_ID=${{ secrets.ACCESSKEY_ID }}" >> .env
27+ echo "SECRET_ACCESS_KEY=${{ secrets.SECRET_ACCESS_KEY }}" >> .env
28+
29+ - run : |
30+ npm install --silent
31+ npm test
2732 fmt :
2833 runs-on : ubuntu-latest
2934 steps :
Original file line number Diff line number Diff line change @@ -178,8 +178,8 @@ located at the root of your project directory.
178178
179179``` sh
180180# .env
181- accessKeyId =" <key>"
182- secretAccessKey =" <key>"
181+ ACCESSKEY_ID =" <key>"
182+ SECRET_ACCESS_KEY =" <key>"
183183```
184184
185185Then, you're ready to run tests:
Original file line number Diff line number Diff line change @@ -34,8 +34,8 @@ function makeLogEvent(): LoggingEvent {
3434const config = {
3535 batchSize : 10 ,
3636 bufferTimeout : 1_000 ,
37- accessKeyId : process . env . accessKeyId ! ,
38- secretAccessKey : process . env . secretAccessKey ! ,
37+ accessKeyId : process . env . ACCESSKEY_ID ! ,
38+ secretAccessKey : process . env . SECRET_ACCESS_KEY ! ,
3939 region : "eu-central-1" ,
4040 logGroupName : "prod" ,
4141 logStreamName : "bar" ,
You can’t perform that action at this time.
0 commit comments