Skip to content

Commit

Permalink
Add test github action
Browse files Browse the repository at this point in the history
  • Loading branch information
Americas committed Jan 9, 2024
1 parent 85db300 commit 7be5b8d
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Test

on: push

jobs:
unit:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 20.x
- run: corepack enable
- run: yarn install --frozen-lockfile
- run: yarn lint
- run: docker compose up -d nsqd nsqlookupd
- run: yarn test
18 changes: 18 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
version: '3.7'

services:
nsqd:
image: nsqio/nsq:v1.3.0
command: /nsqd -broadcast-address=127.0.0.1 -lookupd-tcp-address=nsqlookupd:4160
depends_on:
- nsqlookupd
ports:
- 4150:4150
- 4151:4151

nsqlookupd:
image: nsqio/nsq:v1.3.0
command: /nsqlookupd
ports:
- 4160:4160
- 4161:4161

0 comments on commit 7be5b8d

Please sign in to comment.