-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
42 lines (39 loc) · 1.11 KB
/
test.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
name: test
on:
# Run CI on all pushes to the master and release/** branches, and on all new
# pull requests, and on all pushes to pull requests (even if a pull request
# is not against master).
push:
branches:
- "master"
- "releases/**"
pull_request:
env:
DOCKER_COMPOSE_VERSION: 1.24.1
jobs:
test:
runs-on: ubuntu-18.04
name: "test"
steps:
- name: Pin docker-compose
run: |
sudo rm /usr/local/bin/docker-compose
curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
chmod +x docker-compose
sudo mv docker-compose /usr/local/bin
- name: Checkout
uses: actions/checkout@v2
- name: Install and test
env:
COMPOSE_PARALLEL_LIMIT: 10
run: |
./install.sh
./test.sh
printf "Testing in-place upgrade"
./install.sh --minimize-downtime
./test.sh
- name: Inspect failure
if: failure()
run: |
docker-compose ps
docker-compose logs