Skip to content

Commit d6359ac

Browse files
actions: run component tests in CI
1 parent a9c3b5a commit d6359ac

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

.github/workflows/main.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,16 @@ jobs:
5858
include:
5959
- os: ubuntu-20.04
6060
browser: firefox
61+
type: 'e2e'
62+
- os: ubuntu-20.04
63+
browser: firefox
64+
type: 'component'
6165
- os: ubuntu-latest
6266
browser: chrome
67+
type: 'e2e'
68+
- os: ubuntu-latest
69+
browser: chrome
70+
type: 'component'
6371
# TODO: re-enable once macos build is stable #590
6472
# - os: macos-latest
6573
# browser: edge
@@ -72,13 +80,17 @@ jobs:
7280
with:
7381
node-version: '16'
7482

75-
- name: e2e
83+
- name: Test
7684
uses: cypress-io/github-action@v4
7785
with:
7886
start: yarn run serve --hide=CLIENT # turn off build output because it's absurdly long
7987
wait-on: http://localhost:8080/
8088
config-file: cypress.config.js
81-
spec: "tests/e2e/**/*"
89+
component: ${{ matrix.type == 'component' }}
90+
spec: |
91+
tests/e2e/**/*
92+
cypress/component/*
93+
cypress/component/**/*
8294
browser: ${{ matrix.browser }}
8395
env:
8496
CYPRESS_baseUrl: http://localhost:8080/
@@ -94,6 +106,6 @@ jobs:
94106
with:
95107
token: ${{ secrets.CODECOV_TOKEN }}
96108
file: ./coverage/lcov.info
97-
name: '${{ github.job }} ${{ matrix.os }} ${{ matrix.browser }}'
98-
flags: e2e
109+
name: '${{ github.job }} ${{ matrix.os }} ${{ matrix.browser }} ${{ matrix.type }}'
110+
flags: ${{ matrix.type }}
99111
fail_ci_if_error: false

0 commit comments

Comments
 (0)