Skip to content

Commit 09b9382

Browse files
committed
Pull request 22: AG-43576 Add GitHub workflows for code check
Squashed commit of the following: commit 8c2ecde Merge: 778b241 b1918f1 Author: Maxim Topciu <mtopciu@adguard.com> Date: Tue Jul 8 12:11:05 2025 +0300 Merge branch 'master' into fix/AG-43576 commit 778b241 Author: Maxim Topciu <mtopciu@adguard.com> Date: Tue Jul 8 09:19:31 2025 +0300 AG-43576 simplify test command in CI workflow commit 416d124 Author: Maxim Topciu <mtopciu@adguard.com> Date: Tue Jul 8 09:16:22 2025 +0300 AG-43576 add Node.js 22.x to test matrix for lint and test workflows commit 3b62654 Author: Maxim Topciu <mtopciu@adguard.com> Date: Mon Jul 7 20:44:34 2025 +0300 AG-43576 add github workflow
1 parent b1918f1 commit 09b9382

2 files changed

Lines changed: 52 additions & 0 deletions

File tree

.github/workflows/lint.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Lint
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
jobs:
10+
lint:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
node-version: [18.x, 22.x]
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Use Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: ${{ matrix.node-version }}
21+
- name: Install pnpm
22+
uses: pnpm/action-setup@v4
23+
with:
24+
version: 10.12.4
25+
- run: pnpm install --frozen-lockfile
26+
- run: pnpm run lint

.github/workflows/test.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
node-version: [18.x, 22.x]
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Use Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: ${{ matrix.node-version }}
21+
- name: Install pnpm
22+
uses: pnpm/action-setup@v4
23+
with:
24+
version: 10.12.4
25+
- run: pnpm install --frozen-lockfile
26+
- run: pnpm test

0 commit comments

Comments
 (0)