Skip to content

Commit

Permalink
adding github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mike dupont committed Sep 9, 2024
1 parent b5b1a49 commit 255374f
Show file tree
Hide file tree
Showing 6 changed files with 59 additions and 4 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/ci-contracts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: zkApp tests
on:
push:
pull_request:
workflow_dispatch: {}
jobs:
test:
timeout-minutes: 30
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
node: [18, 20]
os: [ubuntu-latest]
steps:
- name: Set up NodeJS
uses: meta-introspector/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Git checkout
uses: meta-introspector/checkout@v4
- name: NPM ci, build, & test
run: |
npm ci
npm run build --if-present
npm test
env:
CI: true
22 changes: 22 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Build
on:
repository_dispatch:
push:
pull_request:

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout the branch
uses: meta-introspector/checkout@v4

- name: Install pnpm
uses: meta-introspector/[email protected]
with:
version: latest
- name: Build & Deploy Worker
uses: meta-introspector/wrangler-action@v3
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
accountId: ${{ secrets.CF_ACCOUNT_ID }}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ Cargo.lock
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/
#.idea/
/wrangler.toml~
4 changes: 2 additions & 2 deletions contracts/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ jobs:
os: [ubuntu-latest]
steps:
- name: Set up NodeJS
uses: actions/setup-node@v4
uses: meta-introspector/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Git checkout
uses: actions/checkout@v4
uses: meta-introspector/checkout@v4
- name: NPM ci, build, & test
run: |
npm ci
Expand Down
3 changes: 2 additions & 1 deletion proposal.md
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,8 @@ https://minascan.io/mainnet/tx/5JvQTouheGHgZMZzHPWS8UowkHcm6zUMV62qitynL63JuYtBn
Looking at some existing contracts, the fee is defined in nanomina like this
`const fee = Number(config.fee) * 1e9; // in nanomina (1 billion = 1.0 mina)`
so some have `fee: 1e8,` for 1/10 of a mina.
others define the fee to be 1 mina.

others define the fee to be 1 mina or more.

### Gpt Defintions

Expand Down
3 changes: 3 additions & 0 deletions wrangler.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
name = "zkapp-introspector"
main = "ui/src/pages/index.tsx"
compatibility_date = "2023-03-24"

0 comments on commit 255374f

Please sign in to comment.