-
Notifications
You must be signed in to change notification settings - Fork 19
49 lines (37 loc) · 908 Bytes
/
main.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
37
38
39
40
41
42
43
44
45
46
47
48
49
# This is a basic workflow to help you get started with Actions
name: Main
on:
push:
branches: ['**']
pull_request:
branches: ['**']
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: '.tmp'
key: ${{ runner.os }}-isolatetmp
restore-keys: |
${{ runner.os }}-isolatetmp
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Install packages
run: pnpm install
- name: Dependency audit
run: pnpm audit --prod
- name: Lint
run: pnpm lint
- name: Prettier
run: pnpm prettier:check
- name: Test
run: pnpm test
- name: Test isolate
run: |
pnpm add -g @betty-blocks/cli
pnpm test:isolate