Skip to content

Commit

Permalink
Add GitHub Action workflows to test and lint
Browse files Browse the repository at this point in the history
  • Loading branch information
gabmontes committed Apr 2, 2024
1 parent cc5f69c commit 5160c2f
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Lint

on:
push:

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
- run: npm ci
- run: npm run lint
- run: npm run format:check
- run: npm run deps:check
22 changes: 22 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Test

on:
pull_request:
branches: [ $default-branch ]
workflow_dispatch:

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
- run: npm ci
- run: npm run test
- run: npm run test:e2e
env:
BASE_NODE_URL: ${{ vars.BASE_NODE_URL }}
MNEMONIC: ${{ vars.MNEMONIC }}
- run: npm run build

0 comments on commit 5160c2f

Please sign in to comment.