'backend' service doesn't exist in prod compose #37
Workflow file for this run
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 - Build and Test Service | |
| on: [pull_request] | |
| jobs: | |
| continuous-tests: | |
| name: Run tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Set up Go | |
| uses: actions/[email protected] | |
| with: | |
| go-version: 1.24 | |
| - name: Check out code into the Go module directory | |
| uses: actions/checkout@v2 | |
| - name: go fmt | |
| run: test -z $(gofmt -l .) | |
| - name: go vet | |
| run: go vet ./... | |
| - name: golint | |
| run: go install golang.org/x/lint/golint@latest && golint -set_exit_status ./... | |
| - name: go test | |
| run: go test -timeout 10s -race ./... | |
| startup: | |
| name: Building of Go binaries and Docker images and test some Makefile targets | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Set up Go | |
| uses: actions/[email protected] | |
| with: | |
| go-version: 1.19 | |
| - name: Check out code into the Go module directory | |
| uses: actions/checkout@v2 | |
| - name: Create manage auth password | |
| run: echo "password" > manage_auth_password | |
| - name: Build and start server with golang | |
| run: | | |
| go build ./cmd/server | |
| MANAGE_AUTH_PASSWORD_FILE=manage_auth_password timeout --preserve-status --signal SIGINT 5s ./server | |
| - name: Build and start manage with golang | |
| run: | | |
| go build ./cmd/openslides | |
| ./openslides | |
| - name: Build Prod | |
| run: make build-prod | |
| - name: Build and start server with Docker | |
| run: | | |
| timeout --preserve-status --signal SIGINT 5s docker run --env MANAGE_AUTH_PASSWORD_FILE=/manage_auth_password --volume $PWD/manage_auth_password:/manage_auth_password openslides-manage | |
| env: | |
| DOCKER_BUILDKIT: 1 | |
| - name: Build Dev | |
| run: make build-dev | |
| - name: Start development version of server with Makefile | |
| run: | | |
| timeout --preserve-status --signal SIGINT 5s docker run --env MANAGE_AUTH_PASSWORD_FILE=/manage_auth_password --volume $PWD/manage_auth_password:/manage_auth_password openslides-manage-dev | |
| env: | |
| DOCKER_BUILDKIT: 1 | |
| - name: Build Tests | |
| run: make build-tests | |
| - name: Run tests with Makefile | |
| run: make run-tests | |
| env: | |
| DOCKER_BUILDKIT: 1 |