Skip to content

Commit

Permalink
Github Action
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeychr committed Nov 1, 2024
1 parent 09b463d commit 02d5422
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Lint and tests
on: [push]

jobs:
build:
name: Test
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
cache: 'npm'
- run: npm ci
- run: npm run build

- name: Linter
run: npm run lint

- name: Test
run: npm run test
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@
"scripts": {
"lint:fix": "prettier --write 'src/**/*.{js,ts}' 'test/**/*.{js,ts}' && tslint --fix --config tslint.json --project tsconfig.json",
"lint": "tslint --config tslint.json --project tsconfig.json",
"test": "mocha --exit --recursive 'test/**/*.test.ts'",
"build": "npm-run-all clean build-*",
"build-0-aux": "npx hardhat build",
"build-1-ts": "tsc",
"test": "hardhat test",
"prebuild": "npm run clean",
"build": "hardhat compile && hardhat build && tsc",
"clean": "rm -rf ./dist",
"prepare": "npm run build"
},
Expand Down

0 comments on commit 02d5422

Please sign in to comment.