fix: prune stale static actor vids on remove #913
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 . |