-
Notifications
You must be signed in to change notification settings - Fork 14
31 lines (29 loc) · 952 Bytes
/
build-test.yaml
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
name: Test Web application authentication developer setup
on:
push:
pull_request:
workflow_dispatch:
schedule:
- cron: '42 22 * * 0'
jobs:
test-docker-compose:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- run: |
set -e
echo -e "dockremap:$( id -u ):1\ndockremap:200001:65535" | sudo tee -a /etc/subuid
echo -e "dockremap:$( id -g ):1\ndockremap:200001:65535" | sudo tee -a /etc/subgid
echo '{ "userns-remap": "default" }' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker
- run: docker-compose version
- run: make build
- run: make build COMPOSE=docker-compose.yml.www-with-app
- run: make run
- run: make test
- run: docker-compose down
- run: make run
- run: make test
- run: docker-compose down
- run: make run COMPOSE=docker-compose.yml.www-with-app
- run: make test