generated from rajput-hemant/react-template-vite
-
Notifications
You must be signed in to change notification settings - Fork 4
51 lines (40 loc) · 1.36 KB
/
ci.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
50
51
name: CI
on: [push, pull_request, workflow_dispatch]
jobs:
build:
name: Run Type Check, Linters
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install PNPM
uses: pnpm/action-setup@v2
with:
version: 8
- name: Setup foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
# pnpm no longer runs this before the actual install (https://github.com/pnpm/pnpm/issues/3760)
# but we need to create some placeholder files like bins so that the install step can find them and put references to them in the right spot
# this resolves some chicken-and-egg problems with using workspace bins before they're created (install -> build -> install)
- name: Run prepare scripts
shell: bash
run: pnpm recursive run prepare
- name: Install node dependencies
shell: bash
run: pnpm install --frozen-lockfile
- name: Build
shell: bash
run: pnpm recursive run build
#- name: Check types
# run: pnpm run type-check
# if: always()
- name: Check linting
run: pnpm run lint
if: always()
- name: Check commits messages
uses: wagoid/commitlint-github-action@v5
if: always()