Skip to content

Commit

Permalink
Updating GitHub Actions for bun
Browse files Browse the repository at this point in the history
  • Loading branch information
andymatuschak committed Sep 5, 2024
1 parent 9a7a0e2 commit 9039f59
Showing 1 changed file with 28 additions and 19 deletions.
47 changes: 28 additions & 19 deletions .github/workflows/ts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,53 +21,62 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- uses: actions/checkout@v2
- name: Use Node.js 14.x
uses: actions/setup-node@v2
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 14.x
node-version: 20.x
- name: "install dependencies"
run: yarn install
run: bun install
- name: "run lint"
run: "yarn lint"
run: "bun run lint"
test:
runs-on: ubuntu-latest
steps:
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- uses: actions/checkout@v2
- name: Use Node.js 14.x
uses: actions/setup-node@v2
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 14.x
node-version: 20.x
- name: "install dependencies"
run: yarn install
run: bun install
- name: "run build"
run: "yarn build"
run: "bun run build"
- name: "run test"
run: "yarn test"
run: "bun run test"
stale-api-schema:
name: Generated API schema matches source interfaces
runs-on: ubuntu-latest
steps:
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- uses: actions/checkout@v2
- name: Use Node.js 14.x
uses: actions/setup-node@v2
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 14.x
node-version: 20.x
- name: "install dependencies"
run: yarn install
run: bun install
- name: "run build"
run: "yarn build"
run: "bun run build"
- name: "run generateSchema for the API"
working-directory: packages/api
run: "yarn generateSchema"
run: "bun run generateSchema"
- name: "check if changes are pending"
run: "git diff --exit-code"
- name: "run generateSchema for the events validator"
working-directory: packages/store-shared
run: "yarn generateSchema"
run: "bun run generateSchema"
- name: "run generateSchema for the ingester validator"
working-directory: packages/ingester
run: "yarn generateSchema"
run: "bun run generateSchema"
- name: "check if changes are pending"
run: "git diff --exit-code"
working-directory: packages

0 comments on commit 9039f59

Please sign in to comment.