-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (25 loc) · 1.03 KB
/
tests.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
32
name: Tests
on:
pull_request:
branches: [master, main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #v4.1.7
- name: Get latest Docker Compose version
id: get-compose-version
run: |
COMPOSE_VERSION=$(curl -s https://api.github.com/repos/docker/compose/releases/latest | grep 'tag_name' | cut -d\" -f4)
echo "COMPOSE_VERSION=${COMPOSE_VERSION}" >> $GITHUB_ENV
- name: Install Docker Compose
run: |
curl -L "https://github.com/docker/compose/releases/download/${{ env.COMPOSE_VERSION }}/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
- name: Verify Docker Compose installation
run: docker-compose --version
- name: Run Docker Compose
run: docker-compose up -d
- name: Run Traefik Docker Compose
run: docker-compose -f docker-compose.traefik.yaml up -d