Skip to content

Commit

Permalink
feat: add cypress job
Browse files Browse the repository at this point in the history
  • Loading branch information
deverebor committed Jan 12, 2022
1 parent 0c7cdcf commit 5c4aa7e
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node: [16.04]
node: [16.13.2]

steps:
- name: Checkout πŸ›Ž
uses: actions/checkout@master
uses: actions/checkout@v2

- name: Setup node env πŸ—
uses: actions/[email protected]
Expand All @@ -35,7 +35,7 @@ jobs:

- name: Cache node_modules πŸ“¦
uses: actions/[email protected]
id: npm-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
id: npm-cache
with:
path: ${{ steps.npm-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
Expand All @@ -45,5 +45,8 @@ jobs:
- name: Install dependencies πŸ‘¨πŸ»β€πŸ’»
run: npm i

- name: Run tests πŸ§ͺ
run: npm run test
- name: Run Cypress tests πŸ§ͺ
uses: cypress-io/github-action@v2
with:
build: npm run build
start: npm start

0 comments on commit 5c4aa7e

Please sign in to comment.