[CHORE] transport-node ci (#13) #14
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: kv release | |
on: | |
push: | |
paths: | |
- 'kv/**' | |
- '.github/workflows/kv.yml' | |
tags: [ 'kv/*' ] | |
branches: | |
- '*' | |
jobs: | |
test: | |
name: test kv with released dependencies | |
runs-on: ubuntu-latest-4-cores | |
environment: CI | |
strategy: | |
matrix: | |
deno-version: [1.x.x] | |
steps: | |
- name: Git Checkout Kv | |
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: Install nats-server | |
uses: aricart/[email protected] | |
with: | |
repo: nats-io/nats-server | |
name: nats-server | |
cache: true | |
- name: Lint Deno Module | |
working-directory: kv | |
run: | | |
deno fmt --check | |
deno lint | |
- name: Test Deno Module | |
working-directory: kv | |
env: | |
TMPDIR: ${{ runner.temp }} | |
CI: true | |
NGS_CI_USER: ${{ secrets.NGS_CI_USER }} | |
run: | | |
deno task test | |
- name: Build NPM core bundle | |
working-directory: kv | |
env: | |
CI: true | |
run: | | |
npm ci | |
npm run prepack | |
npm link | |
- name: Test Node Transport with local kv | |
working-directory: transport-node | |
env: | |
CI: true | |
run: | | |
npm ci | |
npm run prepack | |
npm link @nats-io/kv | |
npm test |