-
-
Notifications
You must be signed in to change notification settings - Fork 3
51 lines (42 loc) · 1001 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
42
43
44
45
46
47
48
49
50
51
name: CI
on:
pull_request:
branches:
- "*"
push:
branches:
- '*'
- '!master'
jobs:
ci:
name: Check
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: TruffleHog OSS
uses: trufflesecurity/trufflehog@main
with:
path: ./
base: ${{ github.event.repository.default_branch }}
head: HEAD
extra_args: --debug --only-verified
- name: Install pnpm
uses: pnpm/action-setup@v2
id: pnpm-install
with:
version: latest
run_install: false
- name: Install dependencies
run: pnpm install
- name: Lint check
run: pnpm lint:check
- name: Build
run: pnpm build
- name: Run Tests
run: pnpm test:coverage
- name: Send coverage report to Codecov
uses: codecov/codecov-action@v3