-
Notifications
You must be signed in to change notification settings - Fork 13
47 lines (39 loc) · 1.52 KB
/
startup.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Check building and Makefile
on: [pull_request]
jobs:
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/setup-go@v2.1.3
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