Skip to content

Awesome Morocco New listing website #25

Awesome Morocco New listing website

Awesome Morocco New listing website #25

Workflow file for this run

name: Test Scripts
on:
pull_request:
paths:
- "scripts/**"
branches:
- develop
- master
jobs:
test-script:
name: Test Scripts
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v2
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Restore node_modules from cache
uses: actions/cache@v2
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Run Tests and
uses: ArtiomTr/jest-coverage-report-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
working-directory: "scripts"
package-manager: yarn
test-script: yarn jest