-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #775 from patrickcate/develop
2023-12-16 Release
- Loading branch information
Showing
4 changed files
with
167 additions
and
146 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,9 @@ jobs: | |
- name: Lint files | ||
run: npm run lint | ||
|
||
- name: Test that components are tree shakable. | ||
run: npm run lint:tree-shaking | ||
|
||
# This job runs all Cypress tests. | ||
cypress-test: | ||
if: contains(github.event.head_commit.message, 'skip ci') == false | ||
|
@@ -40,26 +43,37 @@ jobs: | |
# - macos-latest | ||
# - windows-latest | ||
node: | ||
- 16 | ||
- 18 | ||
- 20 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set Timezone | ||
uses: szenius/[email protected] | ||
with: | ||
timezoneLinux: 'America/New_York' | ||
timezoneMacos: 'America/New_York' | ||
timezoneWindows: 'Eastern Standard Time' | ||
|
||
- name: Use Node.js ${{ matrix.node }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
cache: 'npm' | ||
|
||
- name: Clear Vite cache | ||
run: rm -rf node_modules/.vite/deps | ||
|
||
- name: E2E tests on Node v${{ matrix.node }} | ||
if: github.actor == 'dependabot[bot]' | ||
uses: cypress-io/github-action@v6 | ||
with: | ||
command: npm run test:e2e | ||
record: false | ||
env: | ||
TZ: America/New_York | ||
|
||
- name: Component tests on Node v${{ matrix.node }} | ||
if: github.actor == 'dependabot[bot]' | ||
|
@@ -69,6 +83,8 @@ jobs: | |
install: false | ||
command: npm run test:component | ||
record: false | ||
env: | ||
TZ: America/New_York | ||
|
||
- name: Cypress.io E2E tests on Node v${{ matrix.node }} | ||
if: github.actor != 'dependabot[bot]' | ||
|
@@ -81,6 +97,7 @@ jobs: | |
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} | ||
CYPRESS_PROJECT_ID: ${{ secrets.CYPRESS_PROJECT_ID }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
TZ: America/New_York | ||
|
||
- name: Cypress.io component tests on Node v${{ matrix.node }} | ||
if: github.actor != 'dependabot[bot]' | ||
|
@@ -95,6 +112,7 @@ jobs: | |
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} | ||
CYPRESS_PROJECT_ID: ${{ secrets.CYPRESS_PROJECT_ID }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
TZ: America/New_York | ||
|
||
- name: Upload coverage to Codecov | ||
if: github.actor != 'dependabot[bot]' | ||
|
Oops, something went wrong.