Skip to content

Commit

Permalink
feat(@agora): AG-35 basic workflow
Browse files Browse the repository at this point in the history
basic GitHub Actions workflow implementation
  • Loading branch information
g3k0 committed Mar 25, 2024
1 parent f43bacb commit 32e14d8
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
34 changes: 34 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: CI

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

jobs:
build:

runs-on: ubuntu-latest

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

- name: Use Node.js 20.x
uses: actions/setup-node@v2
with:
node-version: 20.x

- name: Install dependencies
run: npm install

- name: Run linter
run: npm run lint

- name: Run unit tests
run: npm run test-contracts
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"prepare": "husky prepare",
"prepare-commit": "git-cz",
"test": "test",
"test-contracts": "npx hardhat test"
"test-contracts": "npx hardhat test",
"lint": "npx lint-staged"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 32e14d8

Please sign in to comment.