Skip to content
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
43 changes: 43 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Run Tests

on:
push:
branches:
- main
pull_request:
branches:
- main

permissions:
contents: read
pull-requests: write

jobs:
test:
runs-on: ubuntu-latest

services:
test-server:
image: ghcr.io/tf2pickup-org/tf2-gameserver:latest
ports:
- 27015:27015/tcp
- 27015:27015/udp
- 27020:27020/udp
env:
SERVER_HOSTNAME: 'test rcon server'
PORT: 27015
CLIENT_PORT: 27016
STEAM_PORT: 27017
STV_PORT: 27020
RCON_PASSWORD: 'password'
options: --tty --add-host host.docker.internal:host-gateway

steps:
- uses: actions/checkout@v4

- uses: denoland/setup-deno@v2
with:
cache: true
deno-version: v2.x

- run: deno task test
9 changes: 6 additions & 3 deletions deno.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
{
"name": "@c43721/rcon",
"tasks": {
"test": "deno test -WN"
},
"imports": {
"@std/bytes": "jsr:@std/bytes@^1.0.2",
"@std/cli": "jsr:@std/cli@^1.0.6",
"@std/async": "jsr:@std/async@^1.0.8"
"@std/bytes": "jsr:@std/bytes@^1.0.6",
"@std/cli": "jsr:@std/cli@^1.0.22",
"@std/async": "jsr:@std/async@^1.0.14"
},
"version": "0.0.7",
"exports": "./mod.ts",
Expand Down