Browse Source

chore: update github actions versions and switch from bun to utoo

pull/11594/head
afc163 4 months ago
parent
commit
3a753280c1
  1. 12
      .github/workflows/ci.yml
  2. 10
      .github/workflows/coverage.yml
  3. 8
      .github/workflows/deploy.yml
  4. 2
      .github/workflows/preview-build.yml

12
.github/workflows/ci.yml

@ -13,16 +13,16 @@ jobs:
node_version: [20]
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: Use Node.js ${{ matrix.node_version }}
uses: actions/setup-node@v4
uses: actions/setup-node@v5
with:
node-version: ${{ matrix.node_version }}
- run: echo ${{github.ref}}
- uses: oven-sh/setup-bun@v2
- run: bun install
- run: bun run lint
- run: bun run build
- uses: utooland/setup-utoo@v1
- run: utoo install
- run: utoo run lint
- run: utoo run build
env:
CI: true
PROGRESS: none

10
.github/workflows/coverage.yml

@ -9,13 +9,13 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: Use Node.js 20
uses: actions/setup-node@v4
uses: actions/setup-node@v5
with:
node-version: 20
- run: echo ${{github.ref}}
- uses: oven-sh/setup-bun@v2
- run: bun install
- run: bun run test:coverage
- uses: utooland/setup-utoo@v1
- run: utoo install
- run: utoo run test:coverage
- uses: codecov/codecov-action@v5

8
.github/workflows/deploy.yml

@ -11,16 +11,16 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: Install Bun
uses: oven-sh/setup-bun@v2
uses: utooland/setup-utoo@v1
- name: Install dependencies with Bun
run: bun install
run: utoo install
- name: Build project
run: bun run build
run: utoo run build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4

2
.github/workflows/preview-build.yml

@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
ref: ${{ github.event.pull_request.head.sha }}

Loading…
Cancel
Save