Skip to content

Update go.yml

Update go.yml #2

Workflow file for this run

# Action workflow for go server
name: go-apiv1-test
on:
push:
branches: [ "main" ]
paths_ignore:
- 'url-shortener/frontend/'
pull_request:
branches: [ "main" ]
paths_ignore:
- 'url-shortener/frontend/'
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 ./...