Skip to content

chore(release): v0.5.0 #16

chore(release): v0.5.0

chore(release): v0.5.0 #16

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: Test
run: npm test --if-present
- if: matrix.os == 'ubuntu-latest'
#linting should run just one and not on all possible operating systems
name: Run linter
run: npm run lint --if-present
- name: Run release assets generation to make sure PR does not break it
shell: bash
run: npm run generate:assets --if-present