-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fe87ea1
commit fc57903
Showing
5 changed files
with
12,922 additions
and
1,079 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Test Contracts | ||
|
||
on: | ||
# mainブランチにプッシュされたとき、またはプルリクエストが作成されたときに実行 | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
test: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "18" | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
working-directory: ./toban/pkgs/contract | ||
|
||
- name: Run Hardhat tests | ||
run: npx hardhat test | ||
working-directory: ./toban/pkgs/contract | ||
|
||
# ガスレポートをアーティファクトとして保存 | ||
- name: Upload Gas Report | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: gas-report | ||
path: ./toban/pkgs/contract/gas-report.txt |
Oops, something went wrong.