Skip to content

Commit

Permalink
テスト実行とガスレポートをGitHub Actionsに
Browse files Browse the repository at this point in the history
  • Loading branch information
takerunakao committed Sep 28, 2024
1 parent fc57903 commit 78ea67b
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/test-contract.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@ on:

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ubuntu-latest

steps:
- name: Checkout repository
Expand All @@ -23,19 +20,19 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "18"
node-version: "20"

- name: Install dependencies
run: npm install
working-directory: ./toban/pkgs/contract
working-directory: ./pkgs/contract

- name: Run Hardhat tests
run: npx hardhat test
working-directory: ./toban/pkgs/contract
working-directory: ./pkgs/contract

# ガスレポートをアーティファクトとして保存
- name: Upload Gas Report
uses: actions/upload-artifact@v3
with:
name: gas-report
path: ./toban/pkgs/contract/gas-report.txt
path: ./pkgs/contract/gas-report.txt

0 comments on commit 78ea67b

Please sign in to comment.