1
0
mirror of https://github.com/Stirling-Tools/Stirling-PDF.git synced 2024-11-14 03:20:14 +01:00
Stirling-PDF/.github/workflows/test.yml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

57 lines
1.3 KiB
YAML
Raw Normal View History

2024-01-01 20:46:33 +01:00
name: Docker Compose Tests
on:
pull_request:
2024-01-02 21:54:33 +01:00
paths:
- 'src/**'
- '**.gradle'
2024-01-02 22:52:51 +01:00
- '!src/main/java/resources/messages*'
2024-01-02 21:54:33 +01:00
- 'exampleYmlFiles/**'
- 'Dockerfile'
2024-01-02 22:11:05 +01:00
- 'Dockerfile**'
2024-01-02 22:52:51 +01:00
2024-01-01 20:46:33 +01:00
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up Java 17
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'adopt'
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
2024-01-01 21:07:37 +01:00
- name: Run Docker Compose Tests
run: |
chmod +x ./gradlew
2024-02-11 17:47:00 +01:00
2024-01-01 21:07:37 +01:00
- name: Get version number
id: versionNumber
run: echo "::set-output name=versionNumber::$(./gradlew printVersion --quiet | tail -1)"
2024-01-01 20:53:09 +01:00
- name: Cache Docker layers
uses: actions/cache@v2
with:
path: /tmp/.buildx-cache
2024-01-01 21:07:37 +01:00
key: ${{ runner.os }}-buildx-${{ steps.versionNumber.outputs.versionNumber }}
2024-01-01 20:53:09 +01:00
restore-keys: |
${{ runner.os }}-buildx-
- name: Install Docker Compose
run: |
sudo curl -L "https://github.com/docker/compose/releases/download/v2.6.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
2024-01-01 20:46:33 +01:00
- name: Run Docker Compose Tests
run: |
chmod +x ./test.sh
./test.sh