-
-
Notifications
You must be signed in to change notification settings - Fork 6
41 lines (31 loc) · 828 Bytes
/
PR.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
name: PR
on:
pull_request:
jobs:
ci:
name: CI
runs-on: ubuntu-latest
container: node:20-bookworm
timeout-minutes: 30
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup tzdata
run: apt-get update -y && apt-get upgrade -y && apt-get install -y tzdata
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: latest
- name: Install dependencies
run: pnpm install
- name: Lint
run: npx eslint --ignore-path .gitignore .
- name: Formatting
run: npx prettier --check **/*.{ts,astro,json,cjs,mjs}
- name: Build
run: pnpm run build
- name: Test
run: pnpm run test
env:
TZ: Asia/Jakarta
- uses: codecov/codecov-action@v3