-
Notifications
You must be signed in to change notification settings - Fork 0
79 lines (65 loc) · 2.38 KB
/
ci.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: CI Build
on:
workflow_dispatch:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up Homebrew
uses: Homebrew/actions/setup-homebrew@master
- name: Remove old executables
run: |
# Remove the old crun executable to let brew to install a newer one ...
sudo apt-get remove crun
- name: Install podman and show dependencies
run: |
# What brew will install: https://ghcr.io/v2/homebrew/core/podman/manifests/5.3.1_1
brew install podman
brew services start podman
- name: Check podman and crun versions
run: |
podman -v
crun -v
- uses: actions/checkout@v4
with:
repository: ch007m/fork-kindcontainer.git
ref: enable-featuregate
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- name: Build kindcontainer testcontainer project
id: build-kindcontainer
run: |
#gradle publishToMavenLocal
export SNAPSHOT_VERSION=$(gradle publishToMavenLocal --console=plain | grep 'Publishing to maven local' | awk -F':' '{print $NF}')
echo "SNAPSHOT_VERSION=$SNAPSHOT_VERSION" >> "$GITHUB_OUTPUT"
- run: |
echo Snapshot version of kind container: ${{ steps.build-kindcontainer.outputs.SNAPSHOT_VERSION }}
- uses: actions/checkout@v4
with:
repository: quarkiverse/quarkus-argocd.git
ref: main
- name: Build quarkus-argocd as not yet released with Maven
run: |
mvn -B clean install -Dno-format -DskipTests
- uses: actions/checkout@v4
- name: Build this project
run: |
ls -la ~/.m2/repository/com/dajudge/kindcontainer/kindcontainer
ls -la ~/.m2/repository/io/quarkiverse/argocd/quarkus-argocd-deployment
mvn -B clean install \
-Dno-format \
-DskipTests \
-Dquarkus-argocd.version="999-SNAPSHOT" \
-Dtestcontainer.version=${{ steps.build-kindcontainer.outputs.SNAPSHOT_VERSION }}
- name: Perform CI test
run: |
export TESTCONTAINERS_RYUK_DISABLED=true
export DOCKER_HOST="unix:///var/run/docker.sock"
mvn test -Dtest=ArgoCDDeployTest