-
Notifications
You must be signed in to change notification settings - Fork 26
35 lines (33 loc) · 952 Bytes
/
test.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
name: Tests
on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Cache pnpm modules
uses: actions/cache@v2
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Use PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
- name: Use PNPM
uses: pnpm/action-setup@v2
with:
version: 8.7.0
- name: Install dependencies
run: pnpm install --recursive
- name: Build the library
run: cd visual-editor && pnpm run build
- name: Run the tests
run: cd visual-editor && pnpm run test