From 510df2a006602b4daaa7e3f3b4112220769e865f Mon Sep 17 00:00:00 2001 From: Liam Beckman Date: Thu, 2 Jan 2025 18:28:02 -0800 Subject: [PATCH] Update Github Actions Tests --- .github/workflows/go.yaml | 2 +- .github/workflows/test.yaml | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/go.yaml b/.github/workflows/go.yaml index 7711183..10d5d06 100644 --- a/.github/workflows/go.yaml +++ b/.github/workflows/go.yaml @@ -1,7 +1,7 @@ # This workflow will build a golang project # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go -name: Go +name: Go Build + Test on: push: diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index f653b2a..dafbbd0 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -7,8 +7,8 @@ on: - main jobs: - lint: - name: lint + test: + name: Build + Test runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -23,10 +23,12 @@ jobs: ./server & - curl --header "Authorization: Bearer Alyssa P. Hacker" \ + # TODO: Capture output and compare with expected output + + curl --silent --header "Authorization: Bearer Alyssa P. Hacker" \ --data @example-tasks/hello-world.json \ http://localhost:8080 - curl --header "Authorization: Bearer Foo" \ + curl --silent --header "Authorization: Bearer Foo" \ --data @example-tasks/hello-world.json \ http://localhost:8080