Skip to content

Commit

Permalink
Adding some logging to debug CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Icyadam14 committed Nov 27, 2024
1 parent 774dce2 commit 18c4759
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
- run: npm run jestTest -- -t ${{ matrix.mcVersion }}
- uses: actions/upload-artifact@v4
with:
name: test_picture-${{ github.run_id }}-${{ github.job }}
name: test_picture
path: test/test_*.png
DeployPages:
runs-on: ubuntu-latest
Expand All @@ -57,7 +57,7 @@ jobs:
- name: Download build
uses: actions/[email protected]
with:
name: test_picture-${{ github.run_id }}-${{ github.job }}
name: test_picture
- name: Create commits
run: |
git config user.name 'rom1504bot'
Expand Down
8 changes: 8 additions & 0 deletions viewer/prerender.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,15 @@ const supportedVersions = require('./lib/version').supportedVersions

for (const version of supportedVersions) {
const assets = mcAssets(version)
// Check if assets is null or undefined
if (!assets) {
console.log('Error: assets is null or undefined')
}
const atlas = makeTextureAtlas(assets)
// Check if atlas is null or undefined
if (!atlas) {
console.log('Error: atlas is null or undefined')
}
const out = fs.createWriteStream(path.resolve(texturesPath, version + '.png'))
const stream = atlas.canvas.pngStream()
stream.on('data', (chunk) => out.write(chunk))
Expand Down

0 comments on commit 18c4759

Please sign in to comment.