Skip to content

Commit

Permalink
chore: formatting and cicd tests
Browse files Browse the repository at this point in the history
  • Loading branch information
10d9e committed May 3, 2024
1 parent 3cb3fc1 commit 46c1796
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Unit Test

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
test:
runs-on: ubuntu-latest
name: Hardhat unit test
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Copy .env.example to .env
run: cp .env.example .env

- name: Environment
uses: actions/setup-node@v3
with:
node-version: "18.x"

- name: Copy .env.example to .env
run: cp .env.example .env

- name: Run tests
run: |
npm install
npm run test
# - name: Check formatting
# run: |
# npm run prettier:check

0 comments on commit 46c1796

Please sign in to comment.