Skip to content

Commit 36ef10f

Browse files
committed
ci: Debug ci
1 parent 190d60d commit 36ef10f

File tree

2 files changed

+21
-19
lines changed

2 files changed

+21
-19
lines changed

.github/actions/action.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,26 @@ runs:
1010
uses: actions/setup-node@v4
1111
with:
1212
node-version: 20
13-
# - name: Restore cached npm dependencies
14-
# id: cache-dependencies-restore
15-
# uses: actions/cache/restore@v4
16-
# with:
17-
# path: |
18-
# node_modules
19-
# ~/.cache/Cypress # needed for the Cypress binary
20-
# key: ${{ runner.os }}-npm-dependencies-${{ hashFiles('package-lock.json') }}
13+
- name: Restore cached npm dependencies
14+
id: cache-dependencies-restore
15+
uses: actions/cache/restore@v4
16+
with:
17+
path: |
18+
node_modules
19+
~/.cache/Cypress # needed for the Cypress binary
20+
key: ${{ runner.os }}-npm-dependencies-${{ hashFiles('package-lock.json') }}
2121
- name: Npm install
2222
if: steps.cache.outputs.cache-hit != 'true'
2323
run: npm ci
2424
shell: bash
25-
# - name: Cache npm dependencies
26-
# id: cache-dependencies-save
27-
# uses: actions/cache/save@v4
28-
# with:
29-
# path: |
30-
# node_modules
31-
# ~/.cache/Cypress # needed for the Cypress binary
32-
# key: ${{ steps.cache-dependencies-restore.outputs.cache-primary-key }}
25+
- name: Cache npm dependencies
26+
id: cache-dependencies-save
27+
uses: actions/cache/save@v4
28+
with:
29+
path: |
30+
node_modules
31+
~/.cache/Cypress # needed for the Cypress binary
32+
key: ${{ steps.cache-dependencies-restore.outputs.cache-primary-key }}
3333
- name: Derive appropriate SHAs for base and head for `nx affected` commands
3434
uses: nrwl/nx-set-shas@v4
3535
with:

tools/scripts/upload-badge.mjs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,20 @@ const percentage = coverage['total']['statements']['pct'];
2222
const filename = name
2323
const content = {"schemaVersion":1,"label":"Test Coverage","message":`${percentage}%`,"color":"green","namedLogo":"jest"}
2424
const body = JSON.stringify({ files: { [filename]: { content } } });
25-
25+
console.log(body);
2626
const gistUrl = new URL(process.env['GIST_ID'], 'https://api.github.com/gists/');
2727
const headers = new Headers([
2828
["Content-Type", "application/json"],
2929
["Content-Length", new TextEncoder().encode(body).length],
3030
["User-Agent", "Schneegans"],
3131
["Authorization", `token ${process.env['GIST_SECRET']}`],
3232
]);
33-
console.log(process.env['GIST_SECRET'], process.env['GIST_ID'])
33+
34+
console.log(process.env['GIST_SECRET'])
35+
3436
(async function(){
3537
const result = await fetch(gistUrl, {
36-
method: "POST",
38+
method: "PATCH",
3739
headers,
3840
body,
3941
}).then(r => r.json())

0 commit comments

Comments
 (0)