mirror of
https://github.com/abap2UI5/abap2UI5.git
synced 2025-04-29 19:26:10 +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:
|
||||
push:
|
||||
branches: ["main"]
|
||||
workflow_dispatch:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
Code-Cleanup:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Set Up Node.js
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v3
|
||||
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: |
|
||||
cd app
|
||||
npm install
|
||||
npm install --global abaplint
|
||||
npm run lint # Ensure this script exists in your package.json
|
||||
npm run build # Ensure this script exists in your package.json
|
||||
|
||||
- name: Run JS Transformation
|
||||
run: |
|
||||
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"
|
||||
- name: Run tests
|
||||
run: npm test
|
||||
|
|
Loading…
Reference in New Issue
Block a user