Bump github.com/beevik/etree from 1.5.0 to 1.5.1 #203
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/CD Test per PR | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| pull_request_target: | |
| types: [labeled] | |
| push: | |
| branches: | |
| - "main" | |
| - "!releases/**" | |
| env: | |
| GOVER: 1.23.3 | |
| jobs: | |
| unittest: | |
| runs-on: sdcio-action-runners | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: ${{ env.GOVER }} | |
| - run: go test -cover -coverprofile=coverage.txt ./... | |
| env: | |
| CGO_ENABLED: 0 | |
| - name: Upload coverage reports to Codecov | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| pr-release: | |
| runs-on: sdcio-action-runners | |
| needs: unittest | |
| outputs: | |
| dataversion: ${{ steps.image.outputs.version }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Login to private k8s Container Registry | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: registry.k8s.sdcio.dev | |
| username: iptecharch-builder | |
| password: ${{ secrets.K8S_REGISTRY_HANS }} | |
| - name: Run GoReleaser | |
| id: goreleaser | |
| uses: goreleaser/goreleaser-action@v6 | |
| with: | |
| # either 'goreleaser' (default) or 'goreleaser-pro' | |
| distribution: goreleaser | |
| version: latest | |
| args: release --clean -f .goreleaser.nightlies.yml --skip=validate | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.IPTECHARCH_GITHUB_PAT }} | |
| PR: ${{ github.event.pull_request.number }} | |
| - name: Extract docker image build version from GoReleaser | |
| id: image | |
| run: | | |
| echo "version=$( echo '${{ steps.goreleaser.outputs.artifacts }}' | jq '.[] | select(.type == "Published Docker Image" and (.name | contains("registry.k8s.sdcio.dev")) and (.name | contains("latest") | not)) | .name | split(":") | .[1]' )" >> $GITHUB_OUTPUT | |
| latest-versions: | |
| name: Fetch latest versions from GH API | |
| runs-on: sdcio-action-runners | |
| outputs: | |
| schemaversion: ${{ steps.latest-versions.outputs.schemaversion }} | |
| dataversion: ${{ steps.latest-versions.outputs.dataversion }} | |
| cacheversion: ${{ steps.latest-versions.outputs.cacheversion }} | |
| configversion: ${{ steps.latest-versions.outputs.configversion }} | |
| certmanagerversion: ${{ steps.latest-versions.outputs.certmanagerversion }} | |
| steps: | |
| - name: Set env vars | |
| id: latest-versions | |
| run: | | |
| echo "schemaversion=$( curl -sL https://api.github.com/repos/sdcio/schema-server/releases/latest | jq '.name' )" >> $GITHUB_OUTPUT | |
| echo "dataversion=$( curl -sL https://api.github.com/repos/sdcio/data-server/releases/latest | jq '.name' )" >> $GITHUB_OUTPUT | |
| echo "cacheversion=$( curl -sL https://api.github.com/repos/sdcio/cache/releases/latest | jq '.name' )" >> $GITHUB_OUTPUT | |
| echo "configversion=$( curl -sL https://api.github.com/repos/sdcio/config-server/releases/latest | jq '.name' )" >> $GITHUB_OUTPUT | |
| echo "certmanagerversion=$( curl -sL https://api.github.com/repos/cert-manager/cert-manager/releases/latest | jq '.name' )" >> $GITHUB_OUTPUT | |
| integration-tests: | |
| needs: [latest-versions, pr-release] | |
| uses: sdcio/integration-tests/.github/workflows/single.yml@main | |
| with: | |
| configserver_version: ${{ needs.latest-versions.outputs.configversion }} | |
| dataserver_version: ${{ needs.pr-release.outputs.dataversion }} | |
| schemaserver_version: ${{ needs.latest-versions.outputs.schemaversion }} | |
| cache_version: ${{ needs.latest-versions.outputs.cacheversion }} | |
| certmanager_version: ${{ needs.latest-versions.outputs.certmanagerversion }} | |
| secrets: inherit |