Browse Source

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

pull/11585/head
afc163 4 months ago
parent
commit
603da14ee3
  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] node_version: [20]
os: [ubuntu-latest, windows-latest, macOS-latest] os: [ubuntu-latest, windows-latest, macOS-latest]
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v6
- name: Use Node.js ${{ matrix.node_version }} - name: Use Node.js ${{ matrix.node_version }}
uses: actions/setup-node@v4 uses: actions/setup-node@v5
with: with:
node-version: ${{ matrix.node_version }} node-version: ${{ matrix.node_version }}
- run: echo ${{github.ref}} - run: echo ${{github.ref}}
- uses: oven-sh/setup-bun@v2 - uses: utooland/setup-utoo@v1
- run: bun install - run: utoo install
- run: bun run lint - run: utoo run lint
- run: bun run build - run: utoo run build
env: env:
CI: true CI: true
PROGRESS: none PROGRESS: none

10
.github/workflows/coverage.yml

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

8
.github/workflows/deploy.yml

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

2
.github/workflows/preview-build.yml

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

Loading…
Cancel
Save