Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 19 additions & 19 deletions .github/workflows/release-create.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,25 @@ jobs:
name: Create GitHub Release and upload binary
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/[email protected]
with:
go-version: 1.19
- name: Set up Go
uses: actions/[email protected]
with:
go-version: 1.23

- name: Check out code into the Go module directory
uses: actions/checkout@v2
with:
ref: "${{ inputs.branch }}"
- name: Check out code into the Go module directory
uses: actions/checkout@v2
with:
ref: "${{ inputs.branch }}"

- name: Build binaries
run: go build ./cmd/openslides
- name: Build binaries
run: go build ./cmd/openslides

- name: Create release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "${{ inputs.tag }}"
prerelease: "${{ inputs.prerelease }}"
title: "${{ inputs.title }}"
files: |
openslides
- name: Create release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "${{ inputs.tag }}"
prerelease: "${{ inputs.prerelease }}"
title: "${{ inputs.title }}"
files: |
openslides
78 changes: 39 additions & 39 deletions .github/workflows/startup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,42 +6,42 @@ jobs:
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 and start server with Docker
run: |
docker build . --tag openslides-manage
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: Start development version of server with Makefile
run: |
make build-dev
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: Run tests with Makefile
run: make run-tests
env:
DOCKER_BUILDKIT: 1
- name: Set up Go
uses: actions/[email protected]
with:
go-version: 1.23

- 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 and start server with Docker
run: |
docker build . --tag openslides-manage
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: Start development version of server with Makefile
run: |
make build-dev
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: Run tests with Makefile
run: make run-tests
env:
DOCKER_BUILDKIT: 1
28 changes: 14 additions & 14 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,22 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Set up Go
uses: actions/[email protected]
with:
go-version: 1.19
- name: Set up Go
uses: actions/[email protected]
with:
go-version: 1.23

- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: go fmt
run: test -z $(gofmt -l .)
- name: go fmt
run: test -z $(gofmt -l .)

- name: go vet
run: go vet ./...
- name: go vet
run: go vet ./...

- name: golint
run: go install golang.org/x/lint/golint@latest && golint -set_exit_status ./...
- name: golint
run: go install golang.org/x/lint/golint@latest && golint -set_exit_status ./...

- name: go test
run: go test -timeout 10s -race ./...
- name: go test
run: go test -timeout 10s -race ./...
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
/server

# Generated files
docker-compose.yml
config.yml
docker-compose.yml
!pkg/config/templates/docker-compose.yml
deployment/
secrets/
/inst

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.19-alpine as base
FROM golang:1.23-alpine as base

WORKDIR /root

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/OpenSlides/openslides-manage-service

go 1.19
go 1.23

require (
github.com/ghodss/yaml v1.0.0
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw
github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY=
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ=
github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/imdario/mergo v0.3.13 h1:lFzP57bqS/wsqKssCGmtLAb8A0wKjLGrve2q3PPVcBk=
github.com/imdario/mergo v0.3.13/go.mod h1:4lJ1jqUDcsbIECGy0RUJAXNIhg+6ocWgb1ALK2O4oXg=
github.com/inconshreveable/mousetrap v1.0.1 h1:U3uMjPSQEBMNp1lFxmllqCPM6P5u/Xq7Pgzkat/bFNc=
Expand All @@ -23,6 +24,7 @@ golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg=
golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE=
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
google.golang.org/genproto v0.0.0-20221027153422-115e99e71e1c h1:QgY/XxIAIeccR+Ca/rDdKubLIU9rcJ3xfy1DC/Wd2Oo=
google.golang.org/genproto v0.0.0-20221027153422-115e99e71e1c/go.mod h1:CGI5F/G+E5bKwmfYo09AXuVN4dD894kIKUFmVbP2/Fo=
google.golang.org/grpc v1.50.1 h1:DS/BukOZWp8s6p4Dt/tOaJaTQyPyOoCcrjroHuCeLzY=
Expand Down
Loading