feat(core): changes condition script for passed by and coming in clauses #148
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| on: pull_request | |
| name: Lint npm packages on pull request | |
| jobs: | |
| npmLint: | |
| name: npm lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout latest code | |
| uses: actions/checkout@v2 | |
| - name: Cache node modules | |
| id: cache-nodemodules | |
| uses: actions/cache@v2 | |
| env: | |
| cache-name: ${{ github.event.repository.name }} | |
| with: | |
| # caching node_modules | |
| path: node_modules | |
| key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-build-${{ env.cache-name }}- | |
| - name: Run npm install | |
| if: steps.cache-nodemodules.outputs.cache-hit != 'true' | |
| run: npm ci | |
| - name: Run test | |
| run: npm run test:ci | |
| - name: Comment Test Coverage | |
| uses: AthleticNet/[email protected] | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| path: coverage/workflows-creator/coverage-summary.json | |
| title: Karma Test Coverage |