-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 878 Bytes
/
Copy pathtest.yml
File metadata and controls
41 lines (34 loc) · 878 Bytes
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: Build & Test
on:
pull_request:
branches: [main]
types: [opened, synchronize, reopened, ready_for_review]
jobs:
main:
if: ${{ !github.event.pull_request.draft }}
name: "Build & Test"
runs-on: ubuntu-latest
timeout-minutes: 5
container:
image: mcr.microsoft.com/playwright:v1.59.1-noble
options: --user 1001:1001 # Run as non-root user for security
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: latest
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '24'
cache: 'pnpm'
- name: Install dependencies
run: pnpm i
- name: Build
run: pnpm build
- name: Test
run: pnpm test
env:
CI: true