Skip to content
10 changes: 9 additions & 1 deletion .github/workflows/test-chains-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
name: Run Axelar Chains Config Tests

on: pull_request
on:
pull_request:
paths:
- 'axelar-chains-config/**'
push:
branches:
- main
paths:
- 'axelar-chains-config/**'

jobs:
test:
Expand Down
30 changes: 7 additions & 23 deletions .github/workflows/unit-tests.yaml
Original file line number Diff line number Diff line change
@@ -1,32 +1,16 @@
name: Unit Tests

# This workflow runs unit tests independently of integration tests
# It triggers on changes to test files, source code, or configuration
on:
pull_request:
paths:
- 'evm/test/**'
- 'evm/utils.js'
- 'evm/**/*.js'
- 'common/**'
- 'package.json'
- 'tsconfig.json'
- '.github/workflows/unit-tests.yaml'
push:
branches: [main, develop]
paths:
- 'evm/test/**'
- 'evm/utils.js'
- 'evm/**/*.js'
- 'common/**'
- 'package.json'
- 'tsconfig.json'
- '.github/workflows/unit-tests.yaml'
branches:
- main

jobs:
unit-tests:
name: Unit Tests
name: Run Unit Tests
runs-on: blacksmith-2vcpu-ubuntu-2204

steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -37,11 +21,11 @@ jobs:
node-version: 18.x
cache: 'npm'

- name: Install dependencies
- name: Install
run: npm ci

- name: Build
run: npm run build

- name: Run Unit Tests
run: npm test
- name: Test
run: npm run test