Skip to content

Commit

Permalink
Adjust CI to include FA deps in matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
robmadole committed Jun 29, 2022
1 parent 295baab commit f3585b7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ jobs:
16.12.x,
17.0.x
]
fontawesome-svg-core: [
1.2.x,
6.x
]
free-solid-svg-icons: [
5.x,
6.x
]

steps:
- uses: actions/checkout@v1
Expand All @@ -32,11 +40,11 @@ jobs:
run: |
npm install
npm run build
npm install react@${{ matrix.react }} react-dom@${{ matrix.react }} react-test-renderer@${{ matrix.react }}
npm list react react-dom react-test-renderer
npm install --no-save react@${{ matrix.react }} react-dom@${{ matrix.react }} react-test-renderer@${{ matrix.react }}
npm install --no-save @fortawesome/fontawesome-svg-core@${{ matrix.fontawesome-svg-core }} @fortawesome/free-solid-svg-icons@${{ matrix.free-solid-svg-icons }}
npm list react react-dom react-test-renderer @fortawesome/fontawesome-svg-core @fortawesome/free-solid-svg-icons
npm run lint
npm run test.5
npm run test.6
npm run test
- name: dist
run: |
npm run dist
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@
"lint": "eslint src",
"prettier": "pretty-quick --pattern src/** --staged",
"prepack": "npm run dist",
"test": "npm run test.5 && npm run test.6",
"test.5": "npm --no-save install @fortawesome/[email protected] @fortawesome/[email protected] && jest --silent",
"test.6": "npm --no-save install @fortawesome/[email protected] @fortawesome/[email protected] && jest --silent",
"test": "jest --silent",
"install.5": "npm --no-save install @fortawesome/[email protected] @fortawesome/[email protected]",
"install.6": "npm --no-save install @fortawesome/[email protected] @fortawesome/[email protected]",
"clean": "rm -f index.js && rm -f index.es.js"
},
"lint-staged": {
Expand Down

0 comments on commit f3585b7

Please sign in to comment.