Skip to content

Commit

Permalink
Add test.yaml workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lbeckman314 committed Jan 3, 2025
1 parent 7d673d8 commit eea02c5
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/go.yml → .github/workflows/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ name: Go
on:
push:
pull_request:
branches: [ "main" ]
branches:
- "main"

jobs:

Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Test

on:
push:
pull_request:
branches:
- main

jobs:
lint:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-go@v3
with:
go-version: 'stable'

- name: Test
run: |
make
./server &
curl --header "Authorization: Bearer Alyssa P. Hacker" \
--data @example-tasks/hello-world.json \
http://localhost:8080
curl --header "Authorization: Bearer Foo" \
--data @example-tasks/hello-world.json \
http://localhost:8080

0 comments on commit eea02c5

Please sign in to comment.