-
Notifications
You must be signed in to change notification settings - Fork 0
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
5 changed files
with
72 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: "Node: Build + Integration" | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- uses: denoland/setup-deno@v2 | ||
with: | ||
deno-version: v2.x # Run with latest stable Deno. | ||
|
||
- name: Start Pebble and pebble-challtestsrv | ||
run: deno task pebble:start --detach | ||
|
||
- name: Wait for Pebble to be ready | ||
run: | | ||
echo "⏳ Waiting for Pebble... 🪨" | ||
# Loop until the port 14000 is open | ||
until nc -zv localhost 14000 2>/dev/null; do | ||
sleep 1 | ||
done | ||
echo "✅ Pebble is running!" | ||
- name: Wait for pebble-challtestsrv to be ready | ||
run: | | ||
echo "⏳ Waiting for pebble-challtestsrv... 🪨" | ||
until nc -zv localhost 8055 2>/dev/null; do | ||
sleep 1 | ||
done | ||
echo "✅ pebble-challtestsrv is running!" | ||
- run: deno task build:npm:integration | ||
|
||
- name: Stop Pebble | ||
run: deno task pebble:stop |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { build, type BuildOptions } from "jsr:@deno/dnt"; | ||
import { dntConfig } from "./build-npm.ts"; | ||
|
||
const config: BuildOptions = { | ||
...dntConfig, | ||
testPattern: "integration/**/*.test.ts", | ||
test: true, | ||
}; | ||
|
||
await build(config); |
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