Skip to content

Commit

Permalink
chore: add test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
remiroyc committed May 10, 2023
1 parent 6de622a commit 6221d10
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Tests

on:
push:
branches: [main, dev]
pull_request:
branches: [main, dev]

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '14.x'

- name: Install dependencies
run: npm install

- name: Install Hardhat
run: npm install hardhat

- name: Compile contracts
run: npx hardhat compile

- name: Run tests
run: npx hardhat test

- name: Upload test results
uses: actions/upload-artifact@v2
with:
name: test-results
path: test-results.xml

0 comments on commit 6221d10

Please sign in to comment.