-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
36 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,19 +8,22 @@ on: | |
- '*' | ||
pull_request: | ||
branches: [main] | ||
types: [opened, edited, reopened] | ||
|
||
jobs: | ||
test: | ||
name: ${{ matrix.config.kind }} ${{ matrix.config.os }} | ||
runs-on: ubuntu-latest-4-cores | ||
environment: CI | ||
strategy: | ||
matrix: | ||
deno-version: [1.44.4] | ||
deno-version: [ 1.44.4 ] | ||
module: [ core, jetstream, kv, obj, services ] | ||
|
||
name: test ${{matrix.module}} with local dependencies | ||
runs-on: ubuntu-latest-4-cores | ||
environment: CI | ||
|
||
steps: | ||
- name: Git Checkout Deno Module | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 1 | ||
|
||
|
@@ -34,7 +37,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: | ||
|
@@ -47,23 +49,23 @@ jobs: | |
deno fmt --check | ||
deno lint | ||
- name: Test Deno Module | ||
- name: Test ${{matrix.module}} Module | ||
env: | ||
TMPDIR: ${{ runner.temp }} | ||
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 test-${{ 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 | ||
|