Skip to content

Commit

Permalink
chore: use exclude
Browse files Browse the repository at this point in the history
  • Loading branch information
jeswr committed Jul 1, 2023
1 parent 9d60443 commit e9ef8e4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/bundlers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ jobs:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [12.x, 14.x, 16.x, 18.x, 20.x]
bundler: ['browserify', 'esbuild', 'rollup', 'webpack']
exclude:
- os: windows-latest
node-version: [12.x, 14.x]
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -28,11 +31,8 @@ jobs:
path: node_modules
key: node-modules-${{ matrix.os }}-${{ hashFiles('package.json') }}
- name: Install dependencies
if: ${{ !(matrix.os == 'windows-latest' && (matrix.node-version == '12.x' || matrix.node-version == '14.x')) }}
run: npm install
- name: Bundle code
if: ${{ !(matrix.os == 'windows-latest' && (matrix.node-version == '12.x' || matrix.node-version == '14.x')) }}
run: npm run test:prepare ${{ matrix.bundler }}
- name: Run Tests on Browsers
if: ${{ !(matrix.os == 'windows-latest' && (matrix.node-version == '12.x' || matrix.node-version == '14.x')) }}
run: npm run test:bundlers ${{ matrix.bundler }}
5 changes: 3 additions & 2 deletions .github/workflows/node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [12.x, 14.x, 16.x, 18.x, 20.x]
exclude:
- os: windows-latest
node-version: [12.x, 14.x]
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -27,8 +30,6 @@ jobs:
path: node_modules
key: node-modules-${{ hashFiles('package.json') }}
- name: Install dependencies
if: ${{ !(matrix.os == 'windows-latest' && (matrix.node-version == '12.x' || matrix.node-version == '14.x')) }}
run: npm install
- name: Run Tests
if: ${{ !(matrix.os == 'windows-latest' && (matrix.node-version == '12.x' || matrix.node-version == '14.x')) }}
run: npm run coverage

0 comments on commit e9ef8e4

Please sign in to comment.