Merge pull request #410 from dokku/362-incorrect-well-known-permissio… #49
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| name: "ci" | |
| # yamllint disable-line rule:truthy | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| concurrency: | |
| group: ci-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| name: test (dokku ${{ matrix.dokku_version }}) | |
| runs-on: ubuntu-24.04 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| dokku_version: | |
| - 0.38.3 | |
| env: | |
| DOKKU_VERSION: ${{ matrix.dokku_version }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6.0.2 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v4 | |
| - name: Bring up the test stack | |
| run: make setup | |
| - name: Run lint | |
| run: make lint | |
| - name: Run unit tests | |
| run: make unit-tests | |
| - name: Collect compose logs on failure | |
| if: failure() | |
| run: make logs > tmp/compose-logs.txt || true | |
| - name: Upload compose logs on failure | |
| if: failure() | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: compose-logs-dokku-${{ matrix.dokku_version }} | |
| path: tmp/compose-logs.txt | |
| if-no-files-found: ignore | |
| - name: Tear down the test stack | |
| if: always() | |
| run: make clean | |
| test-native: | |
| name: test-native (dokku ${{ matrix.dokku_version }}) | |
| runs-on: ubuntu-24.04 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| dokku_version: | |
| - 0.38.3 | |
| env: | |
| DOKKU_VERSION: ${{ matrix.dokku_version }} | |
| DOKKU_TAG: v${{ matrix.dokku_version }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6.0.2 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v4 | |
| - name: Install bats | |
| run: sudo apt-get update && sudo apt-get install -y bats | |
| - name: Bootstrap dokku and bring up Pebble services | |
| run: make setup-native | |
| - name: Run unit tests | |
| run: make unit-tests-native | |
| - name: Collect diagnostic logs on failure | |
| if: failure() | |
| run: | | |
| mkdir -p tmp | |
| make logs > tmp/compose-logs-native.txt || true | |
| { | |
| echo "### dokku --version" | |
| dokku --version || true | |
| echo | |
| echo "### nginx -t" | |
| sudo nginx -t || true | |
| echo | |
| echo "### journalctl -n 500" | |
| sudo journalctl -n 500 --no-pager || true | |
| } > tmp/native-diag.txt || true | |
| - name: Upload diagnostic logs on failure | |
| if: failure() | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: native-diag-dokku-${{ matrix.dokku_version }} | |
| path: | | |
| tmp/compose-logs-native.txt | |
| tmp/native-diag.txt | |
| if-no-files-found: ignore | |
| - name: Tear down the Pebble services | |
| if: always() | |
| run: make clean-native |