React 0.2.x v7 updates (#575) #369
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: [20.x, 18.x] | |
| react: [19.x, 18.x, 17.x, 16.x] | |
| exclude: | |
| # For v7.x core, allow all icon versions | |
| # For v6.x and v1.2.x core, exclude v7.x icons | |
| - free-solid-svg-icons: '7.x' | |
| fontawesome-svg-core: '6.x' | |
| - free-solid-svg-icons: '7.x' | |
| fontawesome-svg-core: '1.2.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: Install base dependencies | |
| run: npm install --no-audit --no-save | |
| - name: Install React dependencies | |
| run: npm install --no-save react@${{ matrix.react }} react-dom@${{ matrix.react }} react-test-renderer@${{ matrix.react }} | |
| - name: Install FontAwesome dependencies | |
| run: npm install --no-save @fortawesome/fontawesome-svg-core@${{ matrix.fontawesome-svg-core }} @fortawesome/free-solid-svg-icons@${{ matrix.free-solid-svg-icons }} | |
| - name: Verify React version | |
| run: npm list react react-dom react-test-renderer | |
| - name: Build and test | |
| run: | | |
| npm run build | |
| npm run lint | |
| npm run test | |
| - name: Build distribution | |
| run: npm run dist |