chore: add release and publish to npm workflow #24
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Javascript Tests | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
- releases/** | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
SUI_VERSION: mainnet-v1.25.3 | |
jobs: | |
test-js: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup Sui CLI and install dependencies | |
uses: ./.github/actions/install | |
with: | |
SUI_VERSION: ${{ env.SUI_VERSION }} | |
- name: Build Move Modules | |
run: npm run build-move | |
- name: Run Localnet | |
run: nohup sh -c 'RUST_LOG="off" sui-test-validator' > nohup.out 2> nohup.err < /dev/null & | |
- name: Sleep for 30 seconds | |
run: sleep 30s | |
shell: bash | |
- name: Test | |
run: npm run test-js |