diff --git a/.github/workflows/test modules.yml b/.github/workflows/test modules.yml new file mode 100644 index 000000000..9410626e8 --- /dev/null +++ b/.github/workflows/test modules.yml @@ -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 \ No newline at end of file diff --git a/.github/workflows/test.yml b/.github/workflows/test packages.yml similarity index 81% rename from .github/workflows/test.yml rename to .github/workflows/test packages.yml index aec4d9a5d..cc05742d5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test packages.yml @@ -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: diff --git a/modules/code-generator/src/cli/index.ts b/modules/code-generator/src/cli/index.ts index bbada81cf..fcbbc8a34 100644 --- a/modules/code-generator/src/cli/index.ts +++ b/modules/code-generator/src/cli/index.ts @@ -1,2 +1,2 @@ export * from './run'; -export * from './init-solution'; \ No newline at end of file +export * from './init-solution'; diff --git a/package.json b/package.json index 3f65cb7eb..6e8ab8703 100644 --- a/package.json +++ b/package.json @@ -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",