Skip to content

Commit

Permalink
Add component tests to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
DiggidyDev committed Mar 15, 2024
1 parent fddadeb commit e394171
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion .github/workflows/vercel-preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,31 @@ jobs:
name: Link cached dependencies
run: npm install

test-components:
needs: install-deps
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Restore dependency cache
uses: actions/cache@v4
with:
path: |
node_modules
~/.npm
~/.cache/Cypress
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}

- name: Link cached dependencies
run: npm install

- name: Run component tests
uses: cypress-io/github-action@v6
with:
install: false
component: true

test-api:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -97,7 +122,7 @@ jobs:
- name: Link cached dependencies
run: npm install

- name: Set up Cypress environment
- name: Run E2E tests
uses: cypress-io/github-action@v6
with:
config: baseUrl=${{ needs.deploy-preview.outputs.preview-url }}
Expand Down

0 comments on commit e394171

Please sign in to comment.