Skip to content

Commit

Permalink
🔨 packages: use bun and improve static tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cruzdanilo committed Mar 5, 2024
1 parent 9fef9e4 commit 0c00af3
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 10,613 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.lockb binary diff=lockb
25 changes: 12 additions & 13 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,18 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
cache: npm
- run: npm ci
- run: npm run lint
- run: npm run build
node-version: 20
- uses: oven-sh/setup-bun@v1
- run: bun install
- run: bun run test

- run: npx graph auth --product hosted-service ${{ secrets.GRAPH_HOSTED_TOKEN }}
- run: npm run prepare:optimism
- run: npx graph deploy --product hosted-service exactly/optimism
- run: bun graph auth --product hosted-service ${{ secrets.GRAPH_HOSTED_TOKEN }}
- run: bun prepare:optimism
- run: bun graph deploy --product hosted-service exactly/optimism

- run: npx graph auth --studio ${{ secrets.GRAPH_STUDIO_TOKEN }}
- run: npm run prepare:mainnet
- run: npx graph deploy --studio -l {{ github.ref_name }} exactly
- run: bun graph auth --studio ${{ secrets.GRAPH_STUDIO_TOKEN }}
- run: bun prepare:mainnet
- run: bun graph deploy --studio -l {{ github.ref_name }} exactly
22 changes: 7 additions & 15 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,17 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
token: ${{ secrets.PR_GITHUB_TOKEN }}
- uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
- run: npm ci --ignore-scripts
- uses: crazy-max/ghaction-import-gpg@v5
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
git_user_signingkey: true
git_commit_gpgsign: true
node-version: 20
- uses: oven-sh/setup-bun@v1
- run: bun install --ignore-scripts
- uses: changesets/action@v1
with:
title: 🔖 new release
version: npm run version
publish: npx changeset publish
version: bun version
publish: bun changeset publish
setupGitUser: false
env:
GITHUB_TOKEN: ${{ secrets.PR_GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
17 changes: 6 additions & 11 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,10 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
cache: npm

- run: npm ci
- run: npm run lint
- run: npm run build
- run: npx graph auth --product hosted-service ${{ secrets.GRAPH_HOSTED_TOKEN }}
- run: npm run prepare:op-sepolia
- run: npx graph deploy --product hosted-service exactly/op-sepolia
node-version: 20
- uses: oven-sh/setup-bun@v1
- run: bun install
- run: bun run test
Binary file added bun.lockb
Binary file not shown.
Loading

0 comments on commit 0c00af3

Please sign in to comment.