Created
June 30, 2022 14:07
-
-
Save paramsinghvc/928bcc0ad94b5e2e86a70b4ca8959ecb to your computer and use it in GitHub Desktop.
This file contains 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: Pull Request into Master, Develop and Preprod | |
on: | |
pull_request: | |
branches: | |
- "master" | |
- "develop" | |
- "preprod" | |
jobs: | |
#First job | |
install-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Use Node.js 14 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 14 | |
cache: "yarn" | |
- name: Install Node modules | |
run: yarn ci | |
- name: Linting | |
run: yarn lint | |
- name: Unit & Integration tests | |
run: yarn test:ci | |
- name: Jest coverage report | |
uses: ArtiomTr/[email protected] | |
with: | |
coverage-file: ./jest-report.json | |
base-coverage-file: ./jest-report.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment