Skip to content

chore(release): v0.24.1 #201

chore(release): v0.24.1

chore(release): v0.24.1 #201

Workflow file for this run

name: PR testing
on:
pull_request:
types: [opened, reopened, synchronize, ready_for_review]
jobs:
test-pr:
name: Test NodeJS PR - ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Set git to use LF #to once and for all finish neverending fight between Unix and Windows
run: |
git config --global core.autocrlf false
git config --global core.eol lf
shell: bash
- name: Checkout repository
uses: actions/checkout@v4
- name: Check package-lock version
uses: asyncapi/.github/.github/actions/get-node-version-from-package-lock@master
id: lockversion
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "${{ steps.lockversion.outputs.version }}"
- #npm cli 10 is buggy because of some cache issue
name: Install npm cli 8
shell: bash
run: npm install -g [email protected]
- name: Install dependencies
shell: bash
run: npm ci
- name: Build library
shell: bash
run: npm run build
- name: Test
run: npm test
- if: matrix.os == 'ubuntu-latest'
#linting should run just one and not on all possible operating systems
name: Run linter
run: npm run lint
- name: Run release assets generation to make sure PR does not break it
shell: bash
run: npm run generate:assets