GeezerVison is showing github.com — refactor: run test cases depend on which files have been changed · yoin528/lowcode-engine@eea1a25
File tree
Expand file treeCollapse file tree
Open diff view settings
modules/code-generator/src/cli
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboard +44Lines changed: 44 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +name: lint & test |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + paths: |
| 6 | + - 'modules/**' |
| 7 | + - '!modules/**.md' |
| 8 | + pull_request: |
| 9 | + paths: |
| 10 | + - 'modules/**' |
| 11 | + - '!modules/**.md' |
| 12 | + |
| 13 | +jobs: |
| 14 | + lint: |
| 15 | + runs-on: ubuntu-latest |
| 16 | + steps: |
| 17 | + - name: checkout |
| 18 | + uses: actions/checkout@v2 |
| 19 | + |
| 20 | + - uses: actions/setup-node@v2 |
| 21 | + with: |
| 22 | + node-version: '14' |
| 23 | + |
| 24 | + - name: install |
| 25 | + run: npm i |
| 26 | + |
| 27 | + - name: lint |
| 28 | + run: npm run lint:modules |
| 29 | + |
| 30 | + test-code-generator: |
| 31 | + runs-on: ubuntu-latest |
| 32 | + steps: |
| 33 | + - name: checkout |
| 34 | + uses: actions/checkout@v2 |
| 35 | + |
| 36 | + - uses: actions/setup-node@v2 |
| 37 | + with: |
| 38 | + node-version: '14' |
| 39 | + |
| 40 | + - name: install |
| 41 | + run: npm i && npm run setup:skip-build |
| 42 | + |
| 43 | + - name: test |
| 44 | + run: cd modules/code-generator && npm i && npm run build && npm test |
Collapse file
Copy file name to clipboardExpand all lines: .github/workflows/test packages.yml +9-1Lines changed: 9 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | name: lint & test |
2 | 2 |
|
3 | | -on: [push, pull_request] |
| 3 | +on: |
| 4 | + push: |
| 5 | + paths: |
| 6 | + - 'packages/**' |
| 7 | + - '!packages/**.md' |
| 8 | + pull_request: |
| 9 | + paths: |
| 10 | + - 'packages/**' |
| 11 | + - '!packages/**.md' |
4 | 12 |
|
5 | 13 | jobs: |
6 | 14 | lint: |
|
Collapse file
Copy file name to clipboard +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | export * from './run'; |
2 | | -export * from './init-solution'; |
| 2 | +export * from './init-solution'; |
Collapse file
Copy file name to clipboardExpand all lines: package.json +2Lines changed: 2 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
16 | 16 | "clean": "rm -rf ./packages/*/lib ./packages/*/es ./packages/*/dist ./packages/*/build", |
17 | 17 | "lint": "f2elint scan -q -i ./packages/*/src", |
18 | 18 | "lint:fix": "f2elint fix -i ./packages/*/src", |
| 19 | + "lint:modules": "f2elint scan -q -i ./modules/*/src", |
| 20 | + "lint:modules:fix": "f2elint fix -i ./modules/*/src", |
19 | 21 | "pub": "npm run watchdog:build && lerna publish patch --force-publish --exact --no-changelog", |
20 | 22 | "pub:premajor": "npm run watchdog:build && lerna publish premajor --force-publish --exact --dist-tag beta --preid beta --no-changelog", |
21 | 23 | "pub:prepatch": "npm run watchdog:build && lerna publish prepatch --force-publish --exact --dist-tag beta --preid beta --no-changelog", |
|