Make templates parsing follow directory tree #424
Workflow file for this run
This file contains 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: 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/[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 |