Skip to content

Commit 1667d74

Browse files
committed
run tests on PR
1 parent e4eed5a commit 1667d74

File tree

3 files changed

+16
-15
lines changed

3 files changed

+16
-15
lines changed

.github/workflows/publish.yml

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
name: Publish NPM package
22
on:
3-
push:
4-
branches: [ 'master' ]
5-
release:
6-
types: [ published ]
3+
pull_request:
74

5+
permissions:
6+
contents: read
87
jobs:
9-
publish:
10-
uses: wavesplatform/publish-to-npm/.github/workflows/publish.yml@7d9462af686d83552d72097bf47a892e43d11f6e
11-
with:
12-
environment: NPMJS
13-
event_name: ${{ github.event_name }}
14-
test: true
15-
version: ${{ github.event.release.tag_name }}
16-
permissions:
17-
id-token: write
18-
contents: read
8+
run-tests:
9+
name: Run tests
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
13+
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f
14+
with:
15+
registry-url: 'https://registry.npmjs.org'
16+
node-version: '>=24.7.0'
17+
- run: npm i
18+
- run: npm test
19+
- run: npm run build

.github/workflows/test.yml

Whitespace-only changes.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"testCommand": "jest",
88
"prepublishOnly": "npm run build",
99
"build": "tsc -p ./tsconfig-cjs.json",
10-
"test": "node-state -e -n -m typescript -o ./test/_state.ts -r"
10+
"test": "node-state -e -n -m typescript -i ghcr.io/wavesplatform/waves-private-node:finality -o ./test/_state.ts -r"
1111
},
1212
"repository": {
1313
"type": "git",

0 commit comments

Comments
 (0)