mirror of
https://github.com/abap2UI5/abap2UI5.git
synced 2025-04-30 00:32:19 +08:00
Update js_tranform.yml (#1569)
This commit is contained in:
parent
545a3cca8e
commit
db1bef6e76
44
.github/workflows/js_tranform.yml
vendored
44
.github/workflows/js_tranform.yml
vendored
|
@ -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"
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user