Skip to content

Switch to nari from yarn #164

Switch to nari from yarn

Switch to nari from yarn #164

Workflow file for this run

name: Build and test webpack-virtual-modules
on:
push:
branches: [master]
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
webpack-version: [3, 4, 5]
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: |
~/.cache/nari
node_modules
key: ${{ runner.os }}-install-${{ hashFiles('package.json') }}
- name: "Use Node.js 16.x"
uses: actions/setup-node@master
with:
node-version: 16.x
- name: "Install nari"
run: |
npm i -g nari
- name: Install Webpack ${{ matrix.webpack-version }}
run: |
nari add webpack@${{ matrix.webpack-version }}
- name: Run tests
run: yarn test