mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-12 19:52:51 +00:00
Merge pull request #161 from alibaba/chore/action-test
refactor: run test cases depend on which files have been changed
This commit is contained in:
commit
60edcb922f
44
.github/workflows/test modules.yml
vendored
Normal file
44
.github/workflows/test modules.yml
vendored
Normal file
@ -0,0 +1,44 @@
|
||||
name: lint & test
|
||||
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- 'modules/**'
|
||||
- '!modules/**.md'
|
||||
pull_request:
|
||||
paths:
|
||||
- 'modules/**'
|
||||
- '!modules/**.md'
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: '14'
|
||||
|
||||
- name: install
|
||||
run: npm i
|
||||
|
||||
- name: lint
|
||||
run: npm run lint:modules
|
||||
|
||||
test-code-generator:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: '14'
|
||||
|
||||
- name: install
|
||||
run: npm i && npm run setup:skip-build
|
||||
|
||||
- name: test
|
||||
run: cd modules/code-generator && npm i && npm run build && npm test
|
||||
@ -1,6 +1,14 @@
|
||||
name: lint & test
|
||||
|
||||
on: [push, pull_request]
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- 'packages/**'
|
||||
- '!packages/**.md'
|
||||
pull_request:
|
||||
paths:
|
||||
- 'packages/**'
|
||||
- '!packages/**.md'
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
@ -1,2 +1,2 @@
|
||||
export * from './run';
|
||||
export * from './init-solution';
|
||||
export * from './init-solution';
|
||||
|
||||
@ -16,6 +16,8 @@
|
||||
"clean": "rm -rf ./packages/*/lib ./packages/*/es ./packages/*/dist ./packages/*/build",
|
||||
"lint": "f2elint scan -q -i ./packages/*/src",
|
||||
"lint:fix": "f2elint fix -i ./packages/*/src",
|
||||
"lint:modules": "f2elint scan -q -i ./modules/*/src",
|
||||
"lint:modules:fix": "f2elint fix -i ./modules/*/src",
|
||||
"pub": "npm run watchdog:build && lerna publish patch --force-publish --exact --no-changelog",
|
||||
"pub:premajor": "npm run watchdog:build && lerna publish premajor --force-publish --exact --dist-tag beta --preid beta --no-changelog",
|
||||
"pub:prepatch": "npm run watchdog:build && lerna publish prepatch --force-publish --exact --dist-tag beta --preid beta --no-changelog",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user