test: rotate expired internal CA certificate from test data #183
Workflow file for this run
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 | |
| on: | |
| push: | |
| branches: | |
| - 'main' | |
| pull_request: | |
| branches: | |
| - 'main' | |
| jobs: | |
| build-with-it: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| jdk: [ 17, 21, 25 ] | |
| vault: [ '1.3.0', '1.21.4', '2.0.4', 'bao-2.6.2' ] | |
| include: | |
| - jdk: 21 | |
| vault: '2.0.4' | |
| analysis: true | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Java | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: ${{ matrix.jdk }} | |
| distribution: 'temurin' | |
| - name: Compile | |
| run: ./mvnw -B clean compile | |
| - name: Set up Vault | |
| if: ${{ !startsWith(matrix.vault, 'bao') }} | |
| run: | | |
| VAULT_VERSION="${{ matrix.vault }}" | |
| echo "Installing Vault $VAULT_VERSION ..." | |
| wget -q "https://releases.hashicorp.com/vault/${VAULT_VERSION}/vault_${VAULT_VERSION}_linux_amd64.zip" | |
| wget -q -O - "https://releases.hashicorp.com/vault/${VAULT_VERSION}/vault_${VAULT_VERSION}_SHA256SUMS" | grep linux_amd64 | sha256sum -c | |
| tmp="$(mktemp -d)" | |
| unzip "vault_${VAULT_VERSION}_linux_amd64.zip" -d "$tmp" | |
| rm "vault_${VAULT_VERSION}_linux_amd64.zip" | |
| sudo mv "$tmp/vault" /usr/bin/vault | |
| rm -rf "$tmp" | |
| echo "VAULT_VERSION=${VAULT_VERSION}" | tee -a "$GITHUB_ENV" | |
| - name: Set up OpenBao | |
| if: ${{ startsWith(matrix.vault, 'bao') }} | |
| run: | | |
| VAULT_VERSION="${{ matrix.vault }}" | |
| VAULT_VERSION="${VAULT_VERSION##bao-}" | |
| echo "Installing OpenBao $VAULT_VERSION ..." | |
| wget -q "https://github.com/openbao/openbao/releases/download/v${VAULT_VERSION}/openbao_${VAULT_VERSION}_linux_amd64.tar.gz" | |
| tmp="$(mktemp -d)" | |
| tar -xzf "openbao_${VAULT_VERSION}_linux_amd64.tar.gz" -C "$tmp" | |
| rm "openbao_${VAULT_VERSION}_linux_amd64.tar.gz" | |
| sudo mv "$tmp/bao" /usr/bin/vault | |
| rm -rf "$tmp" | |
| echo "VAULT_VERSION=${VAULT_VERSION}" | tee -a "$GITHUB_ENV" | |
| - name: Test (Unit & Integration) | |
| run: ./mvnw -B -P coverage -P integration-test verify | |
| - name: Analysis | |
| if: matrix.analysis && env.SONAR_TOKEN != '' | |
| run: > | |
| ./mvnw -B sonar:sonar | |
| -Dsonar.host.url=https://sonarcloud.io | |
| -Dsonar.organization=stklcode-github | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |