diff --git a/.github/actions/init/action.yaml b/.github/actions/init/action.yaml index 3c741c29..8bc22aac 100644 --- a/.github/actions/init/action.yaml +++ b/.github/actions/init/action.yaml @@ -1,9 +1,9 @@ name: Init description: Init runs: - using: composite - steps: - - uses: valitydev/action-frontend/setup@v0.1 - # TODO: Need to remove `--force` after removing deprecated `@angular/flex-layout` - - run: npm ci --force - shell: bash + using: composite + steps: + - uses: valitydev/action-frontend/setup@v0.1 + # TODO: Need to remove `--force` after removing deprecated `@angular/flex-layout` + - run: npm ci --force + shell: bash diff --git a/.github/workflows/basic-linters.yml b/.github/workflows/basic-linters.yml index 6114f14f..99aa7549 100644 --- a/.github/workflows/basic-linters.yml +++ b/.github/workflows/basic-linters.yml @@ -3,7 +3,7 @@ name: Vality basic linters on: pull_request: branches: - - "*" + - '*' jobs: lint: diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 2af487ca..2df465da 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -1,18 +1,18 @@ name: Main on: - push: - branches: ['master', 'main', 'epic/**'] + push: + branches: ['master', 'main', 'epic/**'] jobs: - deploy: - name: Deploy - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: ./.github/actions/init - - name: Build - run: npm run build - - name: Deploy image - uses: valitydev/action-deploy-docker@v2 - with: - registry-username: ${{ github.actor }} - registry-access-token: ${{ secrets.GITHUB_TOKEN }} + deploy: + name: Deploy + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: ./.github/actions/init + - name: Build + run: npm run build + - name: Deploy image + uses: valitydev/action-deploy-docker@v2 + with: + registry-username: ${{ github.actor }} + registry-access-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 0d5f2312..9b9debe5 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -1,56 +1,69 @@ name: PR on: - pull_request: - branches: ['*'] + pull_request: + branches: ['*'] jobs: - init: - name: Init - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: ./.github/actions/init - - name: Cache all - uses: actions/cache@v3 - id: cache - with: - path: ./* - key: ${{ github.sha }} - eslint: - name: ESLint App - 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 - prettier: - name: Prettier - 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 prettier - build: - name: Build - runs-on: ubuntu-latest - needs: [init] - steps: - - name: Cache all - uses: actions/cache@v3 - id: cache - with: - path: ./* - key: ${{ github.sha }} - - name: Build - run: npm run build + init: + name: Init + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: ./.github/actions/init + - name: Cache all + uses: actions/cache@v3 + id: cache + with: + path: ./* + key: ${{ github.sha }} + lint: + name: Lint check + 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 + format: + name: Format check + 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 format + spell: + name: Spell check + 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 spell + build: + name: Build + runs-on: ubuntu-latest + needs: [init] + steps: + - name: Cache all + uses: actions/cache@v3 + id: cache + with: + path: ./* + key: ${{ github.sha }} + - name: Build + run: npm run build diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml deleted file mode 100644 index 03d9549e..00000000 --- a/.idea/inspectionProfiles/Project_Default.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/jsLinters/eslint.xml b/.idea/jsLinters/eslint.xml deleted file mode 100644 index 541945bb..00000000 --- a/.idea/jsLinters/eslint.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - \ No newline at end of file diff --git a/.idea/prettier.xml b/.idea/prettier.xml index 3c6e87a5..c418e046 100644 --- a/.idea/prettier.xml +++ b/.idea/prettier.xml @@ -1,6 +1,7 @@ +