2021-07-26 11:15:04 +00:00
|
|
|
name: NodeJS with Webpack
|
|
|
|
|
|
|
|
|
|
on:
|
|
|
|
|
push:
|
|
|
|
|
branches: [ $default-branch ]
|
|
|
|
|
pull_request:
|
|
|
|
|
branches: [ $default-branch ]
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
build:
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
|
matrix:
|
2022-09-14 06:43:11 +00:00
|
|
|
node-version: [14.x, 16.x, 18.x]
|
2022-11-10 13:45:36 +00:00
|
|
|
|
2021-07-26 11:15:04 +00:00
|
|
|
steps:
|
2022-03-28 17:11:12 +00:00
|
|
|
- uses: actions/checkout@v3
|
2021-07-26 11:15:04 +00:00
|
|
|
|
|
|
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
2022-03-28 17:11:12 +00:00
|
|
|
uses: actions/setup-node@v3
|
2021-07-26 11:15:04 +00:00
|
|
|
with:
|
|
|
|
|
node-version: ${{ matrix.node-version }}
|
|
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
|
run: |
|
|
|
|
|
npm install
|
|
|
|
|
npx webpack
|