Skip to content

Commit

Permalink
feat: Workflow Revamp WIP (#3)
Browse files Browse the repository at this point in the history
* Add Bun to workflow

* Fix package.json

* Update lockfile

* Test
  • Loading branch information
boyuanx authored Jul 24, 2024
1 parent cfb75f3 commit 9d50bcb
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 5,050 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Mixed inputs

on:
workflow_dispatch:
inputs:
name:
type: choice
description: Who to greet
options:
- monalisa
- cschleiden
message:
required: true
use-emoji:
type: boolean
description: Include 🎉🤣 emojis
environment:
type: environment

jobs:
greet:
runs-on: ubuntu-latest

steps:
- name: Send greeting
run: echo "${{ github.event.inputs.message }} ${{ fromJSON('["", "🥳"]')[github.event.inputs.use-emoji == 'true'] }} ${{ github.event.inputs.name }}"
22 changes: 3 additions & 19 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,27 +26,11 @@ jobs:
with:
version: nightly

- name: Setup pnpm
uses: pnpm/[email protected]
with:
version: 8
run_install: false

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- name: Setup pnpm cache
uses: actions/cache@v3
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Setup Bun
uses: oven-sh/setup-bun@v2

- name: Install dependencies
run: pnpm i --frozen-lockfile
run: bun i

- name: Run Forge build
run: |
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,5 @@ node_modules
/coverage
/coverage.json

*.tgz
*.tgz
pnpm-lock.yaml
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ cache
coverage
node_modules
out
.github

# files
*.env
Expand Down
Binary file modified bun.lockb
Binary file not shown.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
"license": "ISC",
"dependencies": {
"@openzeppelin/contracts": "5.0.1",
"@openzeppelin/contracts-upgradeable": "5.0.1",
"ethers": "^6.12.1"
"@openzeppelin/contracts-upgradeable": "5.0.1"
},
"devDependencies": {
"@nomicfoundation/hardhat-foundry": "^1.1.1",
Expand Down
Loading

0 comments on commit 9d50bcb

Please sign in to comment.