Skip to content

Commit

Permalink
Merge pull request #4 from BreathXV:go
Browse files Browse the repository at this point in the history
Updated workflow, removed sqlite service
  • Loading branch information
BreathXV authored Jun 5, 2024
2 parents ce66c87 + 0d6b05d commit eaec478
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,11 @@ on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
build-and-test:
test-api-endpoint:
runs-on: ubuntu-latest

services:
db:
image: sqlite
options: --health-cmd=sqlite3:memory:select 1 --health-interval=10s --health-timeout=5s --health-retries=5

steps:
- name: Checkout code
uses: actions/checkout@v2
Expand All @@ -34,9 +26,6 @@ jobs:
env:
DATABASE_PATH: ":memory:"

- name: Wait for the server to start
run: sleep 20

- name: Test endpoint /check-whitelist
run: |
response=$(curl -s -X POST http://localhost:8080/check-whitelist -H "Content-Type: application/json" -d '{"ServerID": "1cdfa108-0ba6-45fc-9756-22e76304e8fa", "IdentityID": "465c3a56-743b-4755-bad0-2c60c625a779"}')
Expand Down

0 comments on commit eaec478

Please sign in to comment.