Skip to content

Update Github Actions Tests #2

Update Github Actions Tests

Update Github Actions Tests #2

Workflow file for this run

name: Test
on:
push:
pull_request:
branches:
- main
jobs:
test:
name: Build + Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v3
with:
go-version: 'stable'
- name: Test
run: |
make
./server &
# 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 --silent --header "Authorization: Bearer Foo" \
--data @example-tasks/hello-world.json \
http://localhost:8080