Skip to content

switch to Node 20 as default runner, test also 18 and 20 on CI #41

switch to Node 20 as default runner, test also 18 and 20 on CI

switch to Node 20 as default runner, test also 18 and 20 on CI #41

Workflow file for this run

name: '🧪 Run Tests'
on: [pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node: [16, 18, 20]
name: Testing on Node ${{ matrix.node }}
steps:
- name: '🚚 Checkout'
uses: actions/checkout@v3
- name: '🔧 Setup Node'
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: '📦️ Install dependencies'
run: yarn
- name: '🧪 Run Unit tests'
run: yarn test
- name: '⚗️ Run CI Classic test'
uses: ./
with:
path: tests/ci/classic/yarn.lock
token: ${{ secrets.GITHUB_TOKEN }}
- name: '⚗️ Run CI Berry v2 test'
uses: ./
with:
path: tests/ci/berry-v2/yarn.lock
token: ${{ secrets.GITHUB_TOKEN }}
- name: '⚗️ Run CI Berry v3 test'
uses: ./
with:
path: tests/ci/berry-v3/yarn.lock
token: ${{ secrets.GITHUB_TOKEN }}