switch to Node 20 as default runner, test also 18 and 20 on CI #41
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: '🧪 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 }} |