Update js_tranform.yml (#1569)

This commit is contained in:
oblomov-dev 2024-11-23 14:26:50 +01:00 committed by GitHub
parent 545a3cca8e
commit db1bef6e76
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,37 +1,37 @@
name: js_transform name: Node.js CI
on: on:
push: push:
branches: ["main"] branches:
workflow_dispatch: - main
pull_request:
branches:
- main
jobs: jobs:
Code-Cleanup: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout Repository - name: Checkout repository
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Set Up Node.js - name: Set up Node.js
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with:
node-version: '16' node-version: '18' # Use Node.js version >= 18
cache: 'npm'
- name: Install Dependencies - name: Install dependencies
run: npm ci
- name: Run npm audit fix (optional, to fix vulnerabilities)
run: npm audit fix || echo "Some issues require manual fixing."
- name: Lint and build
run: | run: |
cd app npm run lint # Ensure this script exists in your package.json
npm install npm run build # Ensure this script exists in your package.json
npm install --global abaplint
- name: Run JS Transformation - name: Run tests
run: | run: npm test
cd app
npm run transform
- name: Commit Changes
uses: EndBug/add-and-commit@v9
with:
default_author: github_actions
message: "abap js files created"
add: "src"