Skip to content

Instantly share code, notes, and snippets.

@paramsinghvc
Created June 30, 2022 14:07
Show Gist options
  • Save paramsinghvc/928bcc0ad94b5e2e86a70b4ca8959ecb to your computer and use it in GitHub Desktop.
Save paramsinghvc/928bcc0ad94b5e2e86a70b4ca8959ecb to your computer and use it in GitHub Desktop.
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