Skip to content

default workdir

default workdir #6

Workflow file for this run

name: Server build & publish
on:
push:
branches:
- main
paths:
- 'server/**'
- '.github/workflows/server-ci.yaml'
jobs:
build-and-test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./server
steps:
- uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '1.20.x'
- name: Install dependencies
run: go get .
- name: Build
run: go build -v /cmd/server/main.go
- name: Test
run: go test