Skip to content

Update README.md

Update README.md #112

Workflow file for this run

name: serverless-template-ci
on:
pull_request:
branches:
- main
- dev
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16
- uses: pnpm/action-setup@v2
name: Install pnpm
id: pnpm-install
with:
version: 7
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm i
- name: Lint
run: pnpm lint
- name: Test
run: pnpm test
- name: Test and generate coverage report
uses: artiomtr/jest-coverage-report-action@v2.0-rc.4
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
custom-title: Jest Coverage Report
package-manager: yarn
threshold: 90
test-script: yarn jest --silent --ci --coverage --testLocationInResults --json --outputFile="report.json"