8.4.1 #480
Workflow file for this run
This file contains 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: babel-loader | |
on: [push, pull_request] | |
jobs: | |
lint: | |
name: lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: "18.x" | |
- name: Install dependencies | |
run: yarn | |
- name: Lint | |
run: yarn run lint | |
test: | |
name: Test - ${{ matrix.os }} - Node v${{ matrix.node-version }}, Webpack ${{ matrix.webpack-version }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
node-version: [12.x, 14.x, 16.x] | |
webpack-version: [latest, '4'] | |
include: | |
- node-version: 18.x | |
webpack-version: latest | |
os: ubuntu-latest | |
coverage: true | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies | |
run: yarn | |
- name: Install webpack ${{ matrix.webpack-version }} | |
run: yarn add -D webpack@${{ matrix.webpack-version }} | |
- name: Build babel-loader | |
run: yarn run build | |
env: | |
BABEL_ENV: test | |
- name: Run tests for webpack version ${{ matrix.webpack-version }} | |
run: yarn test-only | |
- name: Submit coverage data to codecov | |
uses: codecov/codecov-action@v1 | |
if: ${{ matrix.coverage }} | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
test-legacy: | |
name: Test - ubuntu-latest - Node v8.9, Webpack 4 | |
runs-on: ubuntu-latest | |
env: | |
YARN_NODE_LINKER: node-modules | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js latest | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '*' | |
- name: Install dependencies | |
run: yarn | |
- name: Install webpack 4 | |
run: yarn add -D webpack@4 | |
- name: Build babel-loader | |
run: yarn run build | |
env: | |
BABEL_ENV: test | |
- name: Use Node.js 8.9 | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '8.9' | |
- name: Run tests for webpack version 4 | |
run: node scripts/test-legacy | |