parent
3df49c38dc
commit
ca09c415bf
1 changed files with 46 additions and 5 deletions
39
.github/workflows/ci.yml
vendored
Normal file
39
.github/workflows/ci.yml
vendored
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: oven-sh/setup-bun@v2
|
||||
with:
|
||||
bun-version: latest
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: "20"
|
||||
|
||||
- run: npm install
|
||||
|
||||
- run: npm run build
|
||||
|
||||
- name: Build simple-host example
|
||||
working-directory: examples/simple-host
|
||||
run: |
|
||||
npm install
|
||||
npm run build
|
||||
|
||||
- name: Build simple-server example
|
||||
working-directory: examples/simple-server
|
||||
run: |
|
||||
npm install
|
||||
npm run build
|
||||
|
||||
- run: npm run prettier
|
||||
Loading…
Reference in a new issue