Skip to content

Commit

Permalink
[CI] run modules tests in matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
aricart committed Jul 3, 2024
1 parent b052260 commit 61c88d1
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
- '*'
pull_request:
branches: [main]
types: [opened, edited, reopened]

jobs:
test:
Expand All @@ -17,6 +18,7 @@ jobs:
strategy:
matrix:
deno-version: [1.44.4]
modules: [test-core, test-jetstream, test-kv, test-obj, test-services]

steps:
- name: Git Checkout Deno Module
Expand All @@ -34,7 +36,6 @@ jobs:
# run: |
# sudo echo "145.40.102.131 demo.nats.io" | sudo tee -a /etc/hosts


- name: Install nats-server
uses: aricart/[email protected]
with:
Expand All @@ -53,17 +54,17 @@ jobs:
CI: true
NGS_CI_USER: ${{ secrets.NGS_CI_USER }}
run: |
deno task test
- name: Build nats.js
run: deno bundle --unstable transport-deno/src/connect.ts nats.js
deno task ${{ matrix.module }}
- name: Generate lcov
run: deno coverage --unstable --lcov ./coverage > cov.lcov

- name: Upload coverage
uses: coverallsapp/[email protected]
with:
github-token: ${{ secrets.github_token }}
path-to-lcov: ./cov.lcov
# - name: Build nats.js
# run: deno bundle --unstable transport-deno/src/connect.ts nats.js
#
# - name: Generate lcov
# run: deno coverage --unstable --lcov ./coverage > cov.lcov
#
# - name: Upload coverage
# uses: coverallsapp/[email protected]
# with:
# github-token: ${{ secrets.github_token }}
# path-to-lcov: ./cov.lcov

0 comments on commit 61c88d1

Please sign in to comment.