-
Notifications
You must be signed in to change notification settings - Fork 2
45 lines (42 loc) · 929 Bytes
/
Copy pathcode-quality.yml
File metadata and controls
45 lines (42 loc) · 929 Bytes
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
name: Code Quality
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
jobs:
code-quality:
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
include:
- name: Lint
command: vp run check
- name: Typecheck
command: vp run typecheck
- name: Test
command: vp run test
steps:
- name: Checkout code
uses: actions/checkout@v6
with:
persist-credentials: false
- name: Setup Vite+
uses: voidzero-dev/setup-vp@v1
with:
cache: true
- name: Install dependencies
run: vp install
- name: Build
if: ${{ matrix.name != 'Lint' }}
run: vp run build
- name: Run ${{ matrix.name }}
env:
CI: true
run: ${{ matrix.command }}