fix: weird payload generation #197
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: 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 |