Skip to content

Commit

Permalink
this aught to fix my actions
Browse files Browse the repository at this point in the history
  • Loading branch information
wildwestrom committed Jul 22, 2024
1 parent 1de682c commit 2629601
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 39 deletions.
29 changes: 9 additions & 20 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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
27 changes: 8 additions & 19 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 2629601

Please sign in to comment.