Skip to content

Commit 8610579

Browse files
committed
gha: test docker compose up
1 parent cd40fab commit 8610579

File tree

3 files changed

+25
-2
lines changed

3 files changed

+25
-2
lines changed
+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Test
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- 'Dockerfile'
7+
- 'docker-compose.yml'
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
docker:
14+
name: Test docker compose up
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
18+
uses: actions/checkout@v3
19+
- name: Start containers
20+
run: docker-compose -f "docker-compose.yml" up -d --build
21+
- name: Stop containers
22+
if: always()
23+
run: docker-compose -f "docker-compose.yml" down

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ RUN apk --no-cache add \
2121
git
2222

2323
# Build and install LLVM
24-
RUN wget --progress=dot:giga "https://github.com/llvm/llvm-project/archive/llvmorg-${LLVM_VERSION}.tar.gz" || { echo "Error downloading LLVM version ${LLVM_VERSION}" ; exit 1; }
24+
RUN wget -q "https://github.com/llvm/llvm-project/archive/llvmorg-${LLVM_VERSION}.tar.gz" || { echo "Error downloading LLVM version ${LLVM_VERSION}" ; exit 1; }
2525

2626
RUN tar zxf llvmorg-${LLVM_VERSION}.tar.gz && rm llvmorg-${LLVM_VERSION}.tar.gz
2727

docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: '3.8'
1+
version: '3.9'
22

33
services:
44
one:

0 commit comments

Comments
 (0)