-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (37 loc) · 979 Bytes
/
pull.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
name: Test on Pull
on:
pull_request_target:
types: [labeled]
env:
NODE_VERSION: 20
jobs:
security:
name: Check permissions for pull request runs
runs-on: ubuntu-latest
if: contains(github.event.pull_request.labels.*.name, 'safe to test')
steps:
- run: |
echo "Security checks passed!"
test:
needs: security
name: Run Tests
runs-on: ubuntu-latest
steps:
- name: 👀 Checkout Code
uses: actions/checkout@v4
- name: 🏗 Install Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- name: 🛠 Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: 📦 Install Dependencies
run: bun install
- name: 🧪 Run Lint
run: bun run lint
- name: 🧪 Run Tests (in Bun)
run: bun run test
- name: 🧪 Run Tests (in Node)
run: npm run test