-
Notifications
You must be signed in to change notification settings - Fork 22
36 lines (35 loc) · 946 Bytes
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: '🧪 Run Tests'
on: [pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node: [18, 20, 22]
name: Testing on Node ${{ matrix.node }}
steps:
- name: '🚚 Checkout'
uses: actions/checkout@v4
- name: '🔧 Setup Node'
uses: actions/setup-node@v4
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 }}