Bump webpack in /examples/transform-amd-to-commonjs-example #1230
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: build | |
on: [push, pull_request] | |
env: | |
CI: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x, 18.x, 20.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 | |
run: npm ci | |
- name: lint | |
run: npm run lint | |
- name: test | |
run: npm test -- --coverage | |
- name: examples | |
run: | | |
npm pack | |
tar xvf babel-plugin-transform-amd-to-commonjs-*.tgz | |
cd examples/transform-amd-to-commonjs-example | |
npm ci | |
npm test && npm run build # test with latest published version | |
npm install ../../package | |
npm test && npm run build # test with HEAD version | |
cd - | |
- name: upload coverage | |
if: matrix['node-version'] == '20.x' | |
run: bash <(curl -s https://codecov.io/bash) | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
- name: build | |
run: npm run build |