Skip to content

Commit

Permalink
Merge pull request #775 from patrickcate/develop
Browse files Browse the repository at this point in the history
2023-12-16 Release
  • Loading branch information
patrickcate authored Dec 17, 2023
2 parents 39f1e1b + ac1bf1c commit c3a6cfc
Show file tree
Hide file tree
Showing 4 changed files with 167 additions and 146 deletions.
20 changes: 19 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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]'
Expand All @@ -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]'
Expand All @@ -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]'
Expand All @@ -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]'
Expand Down
Loading

0 comments on commit c3a6cfc

Please sign in to comment.