Skip to content

Feature/register service #35

Feature/register service

Feature/register service #35

Workflow file for this run

name: Pull Requests CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
install:
name: Install dependencies
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 19.6.0
- uses: actions/cache@v2
id: npm-cache
with:
path: |
node_modules
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm-
- name: Install dependencies
if: steps.npm-cache.outputs.cache-hit != 'true'
run: npm install
build:
needs: install
name: Build
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 19.6.0
- uses: actions/cache@v2
with:
path: |
node_modules
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm-
- name: Build package
run: npm run build
lint:
needs: install
name: Lint
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 19.6.0
- uses: actions/cache@v2
with:
path: |
node_modules
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm-
- name: lint
run: npm run lint
env:
SKIP_PREFLIGHT_CHECK: true
prettier:
needs: install
name: Prettier
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 19.6.0
- uses: actions/cache@v2
with:
path: |
node_modules
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm-
- name: prettier
run: npm run prettier:check
test:
needs: install
name: Test Application
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
jest-total-partitions: [4]
jest-partition: [1, 2, 3, 4]
steps:
- name: Check out Git repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 19.6.0
- uses: actions/cache@v2
with:
path: |
node_modules
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm-
- name: test
run: npm run test:ci
env:
JEST_TOTAL_PARTITIONS: ${{ matrix.jest-total-partitions }}
JEST_PARTITION: ${{ matrix.jest-partition }}
SKIP_PREFLIGHT_CHECK: true
NODE_ENV: test