mirror of
https://github.com/Ichitux/lambada-fiesta-live.git
synced 2026-05-15 16:32:20 +02:00
Update node.js.yml
This commit is contained in:
23
.github/workflows/node.js.yml
vendored
23
.github/workflows/node.js.yml
vendored
@@ -37,25 +37,6 @@ jobs:
|
|||||||
- run: npm ci
|
- run: npm ci
|
||||||
- run: npm run build --if-present
|
- run: npm run build --if-present
|
||||||
- run: npm test
|
- run: npm test
|
||||||
- name: Output Build Status
|
- name: Tests Badge
|
||||||
uses: actions/github-script@v6
|
uses: ljunker/test-badge-action@v1.1
|
||||||
with:
|
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
script: |
|
|
||||||
const { context } = require('@actions/github');
|
|
||||||
const core = require('@actions/core');
|
|
||||||
const fs = require('fs');
|
|
||||||
const path = require('path');
|
|
||||||
const readline = require('readline');
|
|
||||||
|
|
||||||
const outputPath = path.join(process.env.GITHUB_WORKSPACE, 'README.md');
|
|
||||||
const fileStream = fs.createWriteStream(outputPath, { flags: 'a' });
|
|
||||||
const rl = readline.createInterface({ input: process.stdin, output: fileStream });
|
|
||||||
|
|
||||||
if (context.isFailureGroup) {
|
|
||||||
core.setFailed('Build failed');
|
|
||||||
} else {
|
|
||||||
rl.write('## Build Status\n');
|
|
||||||
rl.write('\n');
|
|
||||||
rl.close();
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user