-
Notifications
You must be signed in to change notification settings - Fork 4
51 lines (39 loc) · 924 Bytes
/
test.yml
File metadata and controls
51 lines (39 loc) · 924 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
46
47
48
49
50
51
# SPDX-FileCopyrightText: 2023 - 2024 Eyad Issa <eyadlorenzo@gmail.com>
#
# SPDX-License-Identifier: AGPL-3.0-or-later
name: CI
permissions:
contents: read
on:
pull_request:
branches: [main]
push:
branches: [main]
env:
NODE_VERSION: 20
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository recursively
uses: actions/checkout@v6
with:
submodules: recursive
- uses: pnpm/action-setup@v6
name: Install pnpm
id: pnpm-install
with:
run_install: false
- uses: actions/setup-node@v6
with:
cache: pnpm
node-version: ${{ env.NODE_VERSION }}
- name: Install dependencies
run: pnpm install
- name: Run lint
run: pnpm run lint
if: always()
- name: Run check
run: pnpm run check
# always run lint
if: always()