Skip to content

Commit

Permalink
Create go.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
arnavrneo authored Jan 26, 2024
1 parent 46aaec7 commit b89a8da
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Action workflow for go server

name: go-apiv1-test

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:

build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: url-shortener/servers/go/
steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21.6'

- name: Set up dependencies
run: go get .

- name: Test
run: go test -v ./...

0 comments on commit b89a8da

Please sign in to comment.