-
Notifications
You must be signed in to change notification settings - Fork 36
49 lines (40 loc) · 1.12 KB
/
validate_apps.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
name: Validate One Click Apps
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Cache .pnpm-store
uses: actions/cache@v4
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-node${{ matrix.node-version }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-node${{ matrix.node-version }}-
- name: Install pnpm
run: npm install -g pnpm@8
- name: Install dependencies with pnpm
run: pnpm install
- name: Validate code
run: pnpm run validate
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Format code
run: pnpm run format
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}