Skip to content

Commit

Permalink
update @tmplr/node, improve workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
loreanvictor committed Dec 17, 2023
1 parent 171967e commit 10a5320
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 10 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ on:
- main
- master
jobs:
do:
test:
uses: ./.github/workflows/test.yml
publish:
needs:
- test
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: tests
on:
workflow_call:
push:
branches: ['*']
pull_request:
Expand Down
4 changes: 3 additions & 1 deletion e2e/sanity.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ describe('sanity checks', () => {
})

test('has a built binary', async () => {
expect(await getBinPath()).toMatch(/dist\/.*\/index\.js$/)
const path = await getBinPath()
const binPath = path.startsWith('\\\\?\\') ? path : path.replace(/\\/g, '/')
expect(binPath).toMatch(/dist\/.*\/index\.js$/)
})
})
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"homepage": "https://github.com/loreanvictor/tmplr#readme",
"dependencies": {
"@tmplr/core": "^0.7.3",
"@tmplr/node": "^0.1.8",
"@tmplr/node": "^0.2.0",
"@tmplr/react": "^0.1.6",
"@tmplr/yaml-parser": "^0.1.8",
"chalk": "^4.1.2",
Expand Down

0 comments on commit 10a5320

Please sign in to comment.