diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 55dc10e..f62da4b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,42 +1,31 @@ name: Build on: [push, pull_request] -env: - PNPM_CACHE_FOLDER: .pnpm-store - jobs: build: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: submodules: true - name: Cache - uses: actions/cache@v2 + uses: actions/cache@v3 with: - path: ${{ env.PNPM_CACHE_FOLDER }} - key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }} + path: ~/.bun/install/cache + key: ${{ runner.os }}-pnpm-${{ hashFiles('**/bun.lockb') }} restore-keys: | ${{ runner.os }}-pnpm- - - name: Install Node.js - uses: actions/setup-node@v2 - with: - node-version: '17' - check-latest: true - - - name: Install pnpm - uses: pnpm/action-setup@v2 - with: - version: 6 + - name: Install bun + uses: oven-sh/setup-bun@v2 - name: Install Dependencies - run: pnpm i + run: bun i - name: Check for errors - run: pnpm check + run: bun check - name: Build - run: pnpm build + run: bun build diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 89055f8..146cd20 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,36 +1,25 @@ name: Build on: [pull_request] -env: - PNPM_CACHE_FOLDER: .pnpm-store - jobs: build: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: submodules: true - name: Cache - uses: actions/cache@v2 + uses: actions/cache@v3 with: - path: ${{ env.PNPM_CACHE_FOLDER }} - key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }} + path: ~/.bun/install/cache + key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lockb') }} restore-keys: | - ${{ runner.os }}-pnpm- - - - name: Install Node.js - uses: actions/setup-node@v2 - with: - node-version: '17' - check-latest: true + ${{ runner.os }}-bun- - - name: Install pnpm - uses: pnpm/action-setup@v2 - with: - version: 6 + - name: Install bun + uses: oven-sh/setup-bun@v2 - name: Check style - run: pnpm lint + run: bun run lint