build(deps): bump gradle/wrapper-validation-action from ccb4328a959376b642e027874838f60f8e596de3 to 63d15e7a1e697b1de6f3ba0507106f89100c8518 #833
Workflow file for this run
This file contains 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 ] | |
release: | |
types: [ published ] | |
pull_request: | |
branches: [ main ] | |
env: | |
REGISTRY_URL: ghcr.io | |
REGISTRY_USER: ${{ github.actor }} | |
IMAGE_BASE_NAME: ${{ github.repository_owner }} | |
jobs: | |
build-gradle-project: | |
name: Build Gradle Project | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- uses: FranzDiebold/github-env-vars-action@v2 | |
- uses: actions/checkout@v3 | |
- name: "Set up JDK 17" | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: "Gradle: Validate Gradle Wrapper" | |
uses: gradle/wrapper-validation-action@63d15e7a1e697b1de6f3ba0507106f89100c8518 | |
- name: "Gradle: Include last commit info and build date for JARs" | |
run: | | |
git log -1 > extensions/last-commit-info/src/main/resources/jar-last-commit-info.txt | |
echo $(date --utc +%FT%TZ) > extensions/last-commit-info/src/main/resources/jar-build-date.txt | |
- name: "Gradle: Overwrite Artifact Version (Release Only)" | |
if: ${{ startsWith(github.ref, 'refs/tags/v') }} | |
run: | | |
GRADLE_ARGS="-PsovityEdcExtensionsVersion=${GITHUB_REF#refs/tags/v}" | |
echo "GRADLE_ARGS=$GRADLE_ARGS" >> $GITHUB_ENV | |
- name: "Gradle: Build" | |
uses: gradle/[email protected] | |
with: | |
arguments: build ${{ env.GRADLE_ARGS }} | |
- name: "Gradle: Publish (Main & Release Only)" | |
uses: gradle/[email protected] | |
if: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') }} | |
with: | |
arguments: publish ${{ env.GRADLE_ARGS }} | |
env: | |
USERNAME: ${{ github.actor }} | |
TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: "Docker Image: edc-dev" | |
uses: ./.github/actions/build-connector-image | |
with: | |
registry-url: ${{ env.REGISTRY_URL }} | |
registry-user: ${{ env.REGISTRY_USER }} | |
registry-password: ${{ secrets.GITHUB_TOKEN }} | |
image-base-name: ${{ env.IMAGE_BASE_NAME }} | |
image-name: "edc-dev" | |
connector-name: "sovity-dev" | |
title: "sovity Dev EDC Connector" | |
description: "Extended EDC Connector built by sovity. This dev version contains no dataspace auth and can be used to quickly start a locally running EDC + EDC UI." | |
- name: "Docker Image: edc-ce" | |
uses: ./.github/actions/build-connector-image | |
with: | |
registry-url: ${{ env.REGISTRY_URL }} | |
registry-user: ${{ env.REGISTRY_USER }} | |
registry-password: ${{ secrets.GITHUB_TOKEN }} | |
image-base-name: ${{ env.IMAGE_BASE_NAME }} | |
image-name: "edc-ce" | |
connector-name: "sovity-ce" | |
title: "sovity Community Edition EDC Connector" | |
description: "EDC Connector built by sovity. Contains sovity's Community Edition EDC extensions and requires dataspace credentials to join an existing dataspace." | |
- name: "Docker Image: edc-ce-mds" | |
uses: ./.github/actions/build-connector-image | |
with: | |
registry-url: ${{ env.REGISTRY_URL }} | |
registry-user: ${{ env.REGISTRY_USER }} | |
registry-password: ${{ secrets.GITHUB_TOKEN }} | |
image-base-name: ${{ env.IMAGE_BASE_NAME }} | |
image-name: "edc-ce-mds" | |
connector-name: "mds-ce" | |
title: "MDS Community Edition EDC Connector" | |
description: "EDC Connector built by sovity and configured for compatibility with the Mobility Data Space (MDS). This EDC requires dataspace credentials, and additional MDS Services such as a Clearing House." | |
- name: "Docker Image: test-backend" | |
uses: ./.github/actions/build-connector-image | |
with: | |
registry-url: ${{ env.REGISTRY_URL }} | |
registry-user: ${{ env.REGISTRY_USER }} | |
registry-password: ${{ secrets.GITHUB_TOKEN }} | |
image-base-name: ${{ env.IMAGE_BASE_NAME }} | |
image-name: "test-backend" | |
connector-name: "test-backend" | |
title: "Test Data Source / Data Sink" | |
description: "Provides a minimal data source / data sink for E2E tests." | |
ts-api-client-library: | |
name: TS API Client Library | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
steps: | |
- uses: FranzDiebold/github-env-vars-action@v2 | |
- uses: actions/checkout@v3 | |
- name: "Set up JDK 17" | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: "Set up Node 16" | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
cache: 'npm' | |
cache-dependency-path: extensions/wrapper/clients/typescript-client/package.json | |
- name: "Gradle: Validate Gradle Wrapper" | |
uses: gradle/wrapper-validation-action@63d15e7a1e697b1de6f3ba0507106f89100c8518 | |
- name: "Gradle: Generate TS Code" | |
uses: gradle/[email protected] | |
with: | |
arguments: :extensions:wrapper:wrapper:build -x test | |
- name: "NPM: Dist Tag & Version" | |
working-directory: ./extensions/wrapper/clients/typescript-client | |
run: | | |
if [[ "$GITHUB_REF" == "refs/tags/v"* ]]; then | |
# Full Release | |
VERSION="${GITHUB_REF#refs/tags/v}" | |
DIST_TAG=latest | |
else | |
VERSION="0.$(date '+%Y%m%d.%H%M%S')-main-$CI_SHA_SHORT" | |
DIST_TAG=main | |
fi | |
npm version $VERSION | |
echo "DIST_TAG=$DIST_TAG" >> $GITHUB_ENV | |
- name: "NPM: Build" | |
working-directory: extensions/wrapper/clients/typescript-client | |
run: npm ci && npm run build | |
- name: "NPM: Publish (Main & Releases Only)" | |
if: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') }} | |
working-directory: extensions/wrapper/clients/typescript-client | |
run: | | |
npm set //registry.npmjs.org/:_authToken $NODE_AUTH_TOKEN | |
npm set //registry.npmjs.org/:username $NODE_USER | |
npm publish --access public --tag "${{ env.DIST_TAG }}" | |
env: | |
NODE_USER: richardtreier-sovity | |
NODE_AUTH_TOKEN: ${{ secrets.SOVITY_EDC_CLIENT_NPM_AUTH }} | |
markdown-link-checks: | |
name: Markdown Link Checks | |
runs-on: ubuntu-latest | |
steps: | |
- uses: FranzDiebold/github-env-vars-action@v2 | |
- uses: actions/checkout@master | |
- name: "Markdown Link Checker: Generate Config" | |
run: .github/markdown-link-checker-config.jq > .github/markdown-link-checker-config.json | |
- name: "Markdown Link Checker: Validate Links" | |
uses: gaurav-nelson/github-action-markdown-link-check@v1 | |
with: | |
use-quiet-mode: 'yes' | |
config-file: '.github/markdown-link-checker-config.json' |