Skip to content

Commit

Permalink
Run CI with 18
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Silbermann committed Feb 2, 2024
1 parent 334bed3 commit ef25833
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
fail-fast: false
matrix:
node: [14, 16, 18]
react: [latest, canary, experimental]
react: ["18.x", latest, canary, experimental]
runs-on: ubuntu-latest
steps:
- name: 猬囷笍 Checkout repo
Expand Down
16 changes: 16 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
const {jest: jestConfig} = require('kcd-scripts/config')

module.exports = Object.assign(jestConfig, {
coverageThreshold: {
...jestConfig.coverageThreshold,
// Full coverage across the build matrix (React 18, 19) but not in a single job
// Ful coverage is checked via codecov
'./src/act-compat.js': {
// minimum coverage of jobs using React 18 and 19
branches: 90,
functions: 100,
lines: 100,
statements: 100,
},
},
})

0 comments on commit ef25833

Please sign in to comment.