Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use testcontainers for test, instead of local zerotier-one #10

Merged
merged 6 commits into from
Apr 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions .github/workflows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: CI

on:
push:
branches: ["main"]

branches:
- main
pull_request:

permissions:
Expand All @@ -23,15 +23,10 @@ jobs:
with:
node-version: 18
cache: 'npm'
- name: Install zerotier-one
run: curl -s https://install.zerotier.com/ | sudo bash

- run: npm ci
- run: npm run build

- name: Set authtoken
run: echo "AUTH_TOKEN=$(sudo cat /var/lib/zerotier-one/authtoken.secret)" >> $GITHUB_ENV

- name: Run tests
run: npm test

Expand Down
2 changes: 1 addition & 1 deletion main.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ model NodeStatus {
clock: uSafeint;
config: {
settings: {
allowManagementFrom?: IP[];
allowManagementFrom?: IPSlashPort[];
allowTcpFallbackRelay: boolean;
forceTcpRelay: boolean;
listeningOn: IPSlashPort[];
Expand Down
Loading
Loading