Skip to content

Commit 2bb2c91

Browse files
committed
Added pull request GitHub workflow pipeline
1 parent 7bb75f4 commit 2bb2c91

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/pr.yaml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Pull Request
2+
3+
# Run the pipeline on new pull requests or changes made to existing ones
4+
on:
5+
pull_request:
6+
types:
7+
- opened
8+
- reopened
9+
- synchronize
10+
11+
# Only allow one concurrent deployment
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
16+
jobs:
17+
default:
18+
name: Install dependencies
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v4
23+
24+
- name: Install pnpm
25+
uses: pnpm/action-setup@v3
26+
with:
27+
version: 9
28+
29+
- name: Setup Node.js
30+
uses: actions/setup-node@v4
31+
with:
32+
node-version: 20
33+
cache: pnpm
34+
35+
- name: Install dependencies
36+
run: pnpm install
37+
38+
- name: Perform dependency audit
39+
run: pnpm audit
40+
41+
- name: Perform code linting
42+
run: pnpm lint

0 commit comments

Comments
 (0)