Skip to content

Commit

Permalink
chore: Add setup, test-smartcontract, and build-to-deploy jobs to Git…
Browse files Browse the repository at this point in the history
…Hub Actions workflow
  • Loading branch information
mashharuki committed Jun 8, 2024
1 parent 0c879d5 commit f83bace
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ permissions:
contents: write

jobs:
# セットアップジョブ
setup:
runs-on: ubuntu-latest
steps:
Expand All @@ -37,6 +38,7 @@ jobs:
- name: Install dependencies
run: yarn install

# スマートコントラクトをテストするジョブ
test-smartcontract:
runs-on: ubuntu-latest
needs: setup
Expand Down Expand Up @@ -67,6 +69,7 @@ jobs:
- name: Test Smart Contract
run: yarn backend test

# ビルドしてGitHub Pagesにデプロイするジョブ
build-to-deploy:
runs-on: ubuntu-latest
needs: setup
Expand Down Expand Up @@ -107,8 +110,7 @@ jobs:
run: yarn frontend export

# しかしGitHub Pagesの仕様として_から始まるディレクトリが見えず404となる
# つまりHTMLからJSを読み込めない
# これを回避するために.nojekyllファイルをoutディレクトリに作る
# つまりHTMLからJSを読み込めなくなるので、これを回避するために.nojekyllファイルをoutディレクトリに作る
- name: add nojekyll
run: touch ./pkgs/frontend/out/.nojekyll

Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@
yarn fronend dev
```

[http://localhost:3000/IntmaxRepo](http://localhost:3000/IntmaxRepo)にアクセスします!!

以下のような画面が立ち上がるので`Let's Login`ボタンを押す!

![](./docs/imgs/handson/4.png)
Expand Down
2 changes: 1 addition & 1 deletion pkgs/frontend/src/context/IntmaxProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ export const IntmaxProvider = ({
console.log("sig:", sig);

// call requestRelayer API
const gaslessResult = await fetch("/api/requestRelayer", {
const gaslessResult = await fetch("IntmaxRepo/api/requestRelayer", {
method: "POST",
headers: {
"Content-Type": "application/json",
Expand Down

0 comments on commit f83bace

Please sign in to comment.