mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Add editorconfig + github workflows
This commit is contained in:
parent
5eaf6ac3b3
commit
21cdefadde
3 changed files with 77 additions and 0 deletions
28
.github/workflows/test-on-pr.yml
vendored
Normal file
28
.github/workflows/test-on-pr.yml
vendored
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
name: Run Unit Tests
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: "lts/*"
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Run tests
|
||||
run: npm test
|
||||
|
||||
- name: Run ESLint
|
||||
run: npm run lint
|
||||
Loading…
Add table
Add a link
Reference in a new issue