Awesome Morocco New listing website #25
Workflow file for this run
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: 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 |