SK-2355: Update JS SDK to the Latest Version #382
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
| name: CI pipeline | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| - release/* | |
| jobs: | |
| check-commit-message: | |
| name: Check Commit Message | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check JIRA ID | |
| uses: gsactions/commit-message-checker@v1 | |
| with: | |
| pattern: '(\[?[A-Z]{1,5}-[1-9][0-9]*)|(\[AUTOMATED\])|(Merge)|(Release).+$' | |
| flags: 'gm' | |
| excludeDescription: 'true' | |
| checkAllCommitMessages: 'true' | |
| accessToken: ${{ secrets.PAT_ACTIONS }} | |
| error: 'One of your your commit messages is not matching the format with JIRA ID Ex: ( SDK-123 commit message )' | |
| ci-checks: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: actions/setup-node@v1 | |
| with: | |
| node-version: 14.17.6 | |
| - name: install node_modules | |
| run: npm install | |
| - name: Run tests | |
| run: npm run test | |
| - name: Get test coverage | |
| run: npm run test:cov | |
| - name: Codecov | |
| uses: codecov/[email protected] | |
| with: | |
| token: ${{ secrets.CODECOV_REPO_UPLOAD_TOKEN }} | |
| files: coverage/lcov.info | |
| name: codecov-skyflow-react | |
| verbose: true | |
| - name: Build | |
| run: npm run build |