Skip to content

Commit

Permalink
Add Ci for smart contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
test committed Jan 14, 2024
1 parent 1da76ab commit ba33b44
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/smart_contracts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Smart Contracts CI

on:
push:
branches:
- master
pull_request:


jobs:
hardhat:
strategy:
fail-fast: true

name: Hardhat project
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./contracts
steps:
- uses: actions/checkout@v3
with:
submodules: recursive

- name: Setup Node 16
uses: actions/setup-node@v3
with:
node-version: "16.x"
cache: "npm"

- name: Install Node dependencies
run: |
yarn install
- name: Run Hardhat tests
run: |
yarn test
id: hardhat-test

0 comments on commit ba33b44

Please sign in to comment.