Skip to content

Commit 248edfe

Browse files
committed
add pr-check.yml
1 parent 640e85b commit 248edfe

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

.github/workflows/pr-check.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: PR Check Build
2+
on:
3+
pull_request:
4+
5+
permissions:
6+
contents: read
7+
pull-requests: write
8+
9+
jobs:
10+
build:
11+
name: Build and Verify
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 1
18+
19+
- name: Setup Bun
20+
uses: oven-sh/setup-bun@v2
21+
with:
22+
bun-version: latest
23+
24+
- name: Install dependencies
25+
run: bun install --frozen-lockfile
26+
27+
- name: Install runzip
28+
run: |
29+
wget -q -O /usr/local/bin/runzip https://github.com/Ylarod/runzip/releases/download/v0.1.8/runzip-x86_64-unknown-linux-gnu
30+
chmod +x /usr/local/bin/runzip
31+
32+
- name: Fetch module data
33+
run: bun run scripts/fetch-data.ts
34+
env:
35+
GRAPHQL_TOKEN: ${{ secrets.GRAPHQL_TOKEN }}
36+
37+
- name: Build
38+
run: bun run build
39+
40+
- name: Upload build artifact
41+
uses: actions/upload-artifact@v4
42+
with:
43+
name: modules-dist
44+
path: dist

0 commit comments

Comments
 (0)