React 0.2.x v7 updates #336
Workflow file for this run
This file contains hidden or 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
name: CI | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
free-solid-svg-icons: [7.x, 6.x, 5.x] | |
fontawesome-svg-core: [7.x, 6.x, 1.2.x] | |
node-version: [18.x, 20.x] | |
react: [18.x, 17.x, 16.x] | |
exclude: | |
# Exclude v6 and v5 icons with v7 core | |
- free-solid-svg-icons: '6.x' | |
fontawesome-svg-core: '7.x' | |
- free-solid-svg-icons: '5.x' | |
fontawesome-svg-core: '7.x' | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: v7 install, build, and test | |
if: ${{ matrix.free-solid-svg-icons == '7.x' }} | |
run: | | |
# Install base dependencies first | |
npm install --no-audit --no-save | |
# Install specific React version and its peer dependencies | |
npm install --no-save react@${{ matrix.react }} react-dom@${{ matrix.react }} react-test-renderer@${{ matrix.react }} | |
# Install appropriate SVG core version | |
if [ "${{ matrix.fontawesome-svg-core }}" == "7.x" ]; then | |
# Install v7 alpha packages from local tarballs | |
npm install --no-save ./fortawesome-fontawesome-svg-core-7.0.0-alpha8.tgz ./fortawesome-fontawesome-common-types-7.0.0-alpha8.tgz ./fortawesome-free-solid-svg-icons-7.0.0-alpha8.tgz | |
else | |
# Install specified SVG core version and v7 icons | |
npm install --no-save @fortawesome/fontawesome-svg-core@${{ matrix.fontawesome-svg-core }} ./fortawesome-free-solid-svg-icons-7.0.0-alpha8.tgz | |
fi | |
# Verify React version | |
npm list react | |
# Build and test | |
npm run build | |
npm run lint | |
npm run test | |
- name: v6 install, build, and test | |
if: ${{ matrix.free-solid-svg-icons == '6.x' }} | |
run: | | |
# Install base dependencies first | |
npm install --no-audit --no-save | |
# Install specific React version and its peer dependencies | |
npm install --no-save react@${{ matrix.react }} react-dom@${{ matrix.react }} react-test-renderer@${{ matrix.react }} | |
# Install Font Awesome v6 packages | |
npm install --no-save @fortawesome/fontawesome-svg-core@${{ matrix.fontawesome-svg-core }} @fortawesome/free-solid-svg-icons@${{ matrix.free-solid-svg-icons }} | |
# Verify React version | |
npm list react | |
# Build and test | |
npm run build | |
npm run lint | |
npm run test | |
- name: v5 install, build, and test | |
if: ${{ matrix.free-solid-svg-icons == '5.x' }} | |
run: | | |
# Install base dependencies first | |
npm install --no-audit --no-save | |
# Install specific React version and its peer dependencies | |
npm install --no-save react@${{ matrix.react }} react-dom@${{ matrix.react }} react-test-renderer@${{ matrix.react }} | |
# Install Font Awesome v5 packages | |
npm install --no-save @fortawesome/fontawesome-svg-core@${{ matrix.fontawesome-svg-core }} @fortawesome/free-solid-svg-icons@${{ matrix.free-solid-svg-icons }} | |
# Verify React version | |
npm list react | |
# Build and test | |
npm run build | |
npm run lint | |
npm run test | |
- name: dist | |
run: | | |
npm run dist |