diff --git a/.eslintrc.js b/.eslintrc.js index cc053003..2e7a5136 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -43,7 +43,7 @@ module.exports = { { ...baseTsRules, // TODO: add fixed directories - files: ['**/src/app/core/**/*.ts'], + files: ['**/src/app/core/**/*.ts', '**/projects/**/*.ts'], }, { ...baseTsRules, diff --git a/.github/settings.yml b/.github/settings.yml new file mode 100644 index 00000000..9267e7d0 --- /dev/null +++ b/.github/settings.yml @@ -0,0 +1,2 @@ +# These settings are synced to GitHub by https://probot.github.io/apps/settings/ +_extends: .github diff --git a/.github/workflows/basic-linters.yml b/.github/workflows/basic-linters.yml new file mode 100644 index 00000000..6114f14f --- /dev/null +++ b/.github/workflows/basic-linters.yml @@ -0,0 +1,10 @@ +name: Vality basic linters + +on: + pull_request: + branches: + - "*" + +jobs: + lint: + uses: valitydev/base-workflows/.github/workflows/basic-linters.yml@v1 diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 7da1b8cf..de37fd09 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -9,6 +9,8 @@ jobs: steps: - uses: actions/checkout@v3 - uses: ./.github/actions/init + - name: Building libraries + run: npm run build-libs - name: Cache all uses: actions/cache@v3 id: cache @@ -16,7 +18,7 @@ jobs: path: ./* key: ${{ github.sha }} eslint: - name: ESLint + name: ESLint App runs-on: ubuntu-latest needs: [init] steps: @@ -27,7 +29,20 @@ jobs: path: ./* key: ${{ github.sha }} - name: Check - run: npm run lint-cmd + run: npm run lint + eslint-libs: + name: ESLint Libs + runs-on: ubuntu-latest + needs: [init] + steps: + - name: Cache all + uses: actions/cache@v3 + id: cache + with: + path: ./* + key: ${{ github.sha }} + - name: Check + run: npm run lint-libs prettier: name: Prettier runs-on: ubuntu-latest @@ -53,4 +68,4 @@ jobs: path: ./* key: ${{ github.sha }} - name: Build - run: npm run build + run: npm run build-app diff --git a/.prettierignore b/.prettierignore index 8dd78226..8ff3cf10 100644 --- a/.prettierignore +++ b/.prettierignore @@ -3,4 +3,7 @@ package-lock.json node_modules dist src/assets/icons/ -.angular \ No newline at end of file +.angular + +.github/settings.* +.github/workflows/basic-* \ No newline at end of file diff --git a/.run/App Dev Server.run.xml b/.run/App Dev Server.run.xml new file mode 100644 index 00000000..0df3c0a0 --- /dev/null +++ b/.run/App Dev Server.run.xml @@ -0,0 +1,12 @@ + + + + + +