-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (40 loc) · 1.03 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
name: CI
on:
pull_request:
branches:
- staging
jobs:
ci:
name: Lint/Test
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./
steps:
- uses: actions/checkout@v4
name: Checkout code
with:
fetch-depth: 0
- name: Setup PNPM
uses: pnpm/action-setup@v3
with:
package_json_file: package.json
- name: Read Node.js version from .tool-versions
id: get_node_version
run: |
echo "$(awk '/nodejs/ {print $2}' .tool-versions)"
echo "node_version=$(awk '/nodejs/ {print $2}' .tool-versions)" >> $GITHUB_OUTPUT
shell: bash
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ steps.get_node_version.outputs.node_version }}
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Run TSC
run: pnpm tsc:ci
- name: Run Biome
run: pnpm lint:ci
- name: Run Jest
run: pnpm test:ci