Skip to content

module tweaks (#59) #70

module tweaks (#59)

module tweaks (#59) #70

Workflow file for this run

name: nats-core release
on:
push:
paths:
- 'core/**'
- '.github/workflows/core.yml'
tags: [ 'core/*' ]
branches:
- '*'
jobs:
test:
name: Test core changes with released dependencies
runs-on: ubuntu-latest-4-cores
environment: CI
strategy:
matrix:
deno-version: [1.45.x]
node-version: [ 22.x ]
permissions:
contents: read
id-token: write
steps:
- name: Git Checkout Core
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Use Deno Version ${{ matrix.deno-version }}
uses: denoland/setup-deno@v1
with:
deno-version: ${{ matrix.deno-version }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install nats-server
uses: aricart/install-binary@v1.0.0
with:
repo: nats-io/nats-server
name: nats-server
cache: true
- name: Disable NPM workspace
run: |
deno task disable-npm-workspace
- name: Test Deno Module
working-directory: core
env:
TMPDIR: ${{ runner.temp }}
CI: true
NGS_CI_USER: ${{ secrets.NGS_CI_USER }}
run: |
deno task test
- name: Build NPM core bundle
working-directory: core
env:
CI: true
run: |
npm install
npm run prepack
npm link
- name: Test Node Transport with local nats-core
working-directory: transport-node
env:
CI: true
run: |
npm install
npm run prepack
npm link @nats-io/nats-core
npm test