Skip to content

Commit

Permalink
wip test: test different React versions using resolve.alias
Browse files Browse the repository at this point in the history
wip test: test different React versions using resolve.alias
  • Loading branch information
SevenOutman committed Aug 7, 2023
1 parent 966c01c commit 376a86d
Show file tree
Hide file tree
Showing 4 changed files with 923 additions and 107 deletions.
17 changes: 5 additions & 12 deletions .github/workflows/nodejs-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
strategy:
matrix:
browser: [ChromeCi, Firefox]
react: ['React17', 'React18']
react-version: [16, 17, 18]

steps:
- uses: actions/checkout@v2
Expand All @@ -56,25 +56,18 @@ jobs:
restore-keys: |
${{ runner.OS }}-node-
${{ runner.OS }}-
- name: Install dependencies
run: npm install

- name: install react 17
if: ${{ matrix.react == 'React17' }}
run: npm run install:react-17

- name: install react 18
if: ${{ matrix.react == 'React18' }}
run: npm run install:react-18

- name: Run headless tests
run: xvfb-run --auto-servernum npm test
env:
CI: true
BROWSER: ${{ matrix.browser }}

REACT: ${{ matrix.react-version }}

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
flags: ${{ matrix.browser }}
flags: ${{ matrix.browser }}, React${{ matrix.react-version }}

0 comments on commit 376a86d

Please sign in to comment.