Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
wizche committed May 31, 2020
1 parent 4c6d75f commit 7674ba9
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on: [push, pull_request]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
coverage:
tests:
# The type of runner that the job will run on
runs-on: ubuntu-latest
env:
Expand All @@ -19,13 +19,6 @@ jobs:
- name: Install dependencies
run: yarn install --dev
working-directory: ${{ env.working-directory}}
- name: Jest
uses: mattallty/jest-github-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
# this is just an example, this could be any command that will trigger jest
test-command: "cd ${{ env.working-directory}} ; yarn jest --coverage --updateSnapshot"
# - name: Run jest
# run: yarn jest --coverage --updateSnapshot
# working-directory: ${{ env.working-directory}}
- name: Run jest
run: yarn jest --coverage --updateSnapshot
working-directory: ${{ env.working-directory}}

0 comments on commit 7674ba9

Please sign in to comment.