Skip to content

test: cover anti-stack item-move guard #939

test: cover anti-stack item-move guard

test: cover anti-stack item-move guard #939

Workflow file for this run

name: ci
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
jobs:
go-checks:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
- name: Show Go version
run: go version
- name: Check formatting
run: |
unformatted="$(gofmt -l .)"
if [ -n "$unformatted" ]; then
echo "The following files are not gofmt-formatted:"
echo "$unformatted"
exit 1
fi
- name: Run tests
run: go test ./...
- name: Run go vet
run: go vet ./...
- name: Build daemons
run: |
go build ./cmd/authd
go build ./cmd/gamed
docker-build:
runs-on: ubuntu-latest
needs: go-checks
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Build runtime image
run: docker build --target runtime -t go-metin2-server:ci .
- name: Build debug runtime image
run: docker build --target runtime-debug -t go-metin2-server:debug-ci .