Merge DataMapper #4831
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: 📦 Build npm Package | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 'Checkout source code' | |
uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '20.x' | |
registry-url: 'https://registry.npmjs.org' | |
scope: '@kaoto' | |
cache: 'yarn' | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
cache: 'maven' | |
# Install dependencies | |
- run: yarn | |
# Lint files | |
- name: 💅 Run eslint | |
run: yarn workspaces foreach --verbose --all --topological-dev run lint | |
# Lint style files | |
- name: 💅 Run stylelint | |
run: yarn workspace @kaoto/kaoto run lint:style | |
# Build packages excluding @kaoto/camel-catalog since it was build during installing dependencies | |
- name: Build packages | |
run: yarn workspaces foreach --verbose --all --topological-dev --exclude @kaoto/camel-catalog --exclude @kaoto/xml-schema-ts run build | |
# Run tests | |
- name: 🧪 Run tests | |
run: yarn workspaces foreach --verbose --all --topological-dev run test | |
- name: Upload results to Codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
# Build lib | |
- name: Build @kaoto/kaoto package in lib mode | |
run: yarn workspace @kaoto/kaoto run build:lib |