feat: renku-core client #3247
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: Test & deploy to renku-kg-dev | |
on: | |
push: | |
branches: | |
- development | |
- release | |
- "hotfix-[0-9]+.[0-9]+**" | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
- reopened | |
env: | |
SBT_OPTS: "-Xmx3G -XX:+UseG1GC" | |
jobs: | |
cleanup-previous-runs: | |
name: Cleanup previous runs | |
runs-on: ubuntu-latest | |
if: github.event.action != 'closed' | |
steps: | |
- uses: rokroskar/[email protected] | |
env: | |
GITHUB_TOKEN: "${{ secrets.RENKUBOT_GITHUB_TOKEN }}" | |
conventional-commits: | |
name: Commit message check | |
runs-on: ubuntu-latest | |
if: github.event_name == 'pull_request' | |
steps: | |
- uses: amannn/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.RENKUBOT_GITHUB_TOKEN }} | |
unit-tests: | |
name: Unit tests | |
runs-on: ubuntu-latest | |
needs: cleanup-previous-runs | |
steps: | |
- uses: actions/checkout@v3 | |
- name: JDK set-up | |
uses: actions/setup-java@v3 | |
with: | |
distribution: "temurin" | |
java-version: "17" | |
- name: Setup cache | |
uses: actions/cache@v2 | |
with: | |
path: | | |
~/.ivy2 | |
~/.cache/coursier | |
~/.sbt | |
key: ${{ runner.os }}-sbt-${{ hashFiles('**/build.sbt') }} | |
- name: Unit test | |
run: sbt -Dsbt.color=always -Dsbt.supershell=false clean test | |
acceptance-tests: | |
name: Graph acceptance tests | |
runs-on: ubuntu-latest | |
needs: cleanup-previous-runs | |
steps: | |
- uses: actions/checkout@v3 | |
- name: JDK set-up | |
uses: actions/setup-java@v3 | |
with: | |
distribution: "temurin" | |
java-version: "17" | |
- name: Setup cache | |
uses: actions/cache@v2 | |
with: | |
path: | | |
~/.ivy2 | |
~/.cache/coursier | |
~/.sbt | |
key: ${{ runner.os }}-sbt-${{ hashFiles('**/build.sbt') }} | |
- name: Acceptance tests | |
run: sbt -Dsbt.color=always -Dsbt.supershell=false "project acceptance-tests" clean test | |
formatter: | |
name: Formatting check | |
runs-on: ubuntu-latest | |
needs: cleanup-previous-runs | |
steps: | |
- uses: actions/checkout@v3 | |
- name: JDK set-up | |
uses: actions/setup-java@v3 | |
with: | |
distribution: "temurin" | |
java-version: "17" | |
- name: Setup cache | |
uses: actions/cache@v2 | |
with: | |
path: | | |
~/.ivy2 | |
~/.cache/coursier | |
~/.sbt | |
key: ${{ runner.os }}-sbt-${{ hashFiles('**/build.sbt') }} | |
- name: Formatter | |
run: sbt scalafmtCheck | |
deploy-to-graph: | |
name: Deploy to renku-kg-dev | |
runs-on: ubuntu-20.04 | |
needs: [unit-tests, acceptance-tests, formatter] | |
if: "github.ref == 'refs/heads/development'" | |
environment: | |
name: renku-kg-dev | |
steps: | |
- name: deploy-development | |
uses: SwissDataScienceCenter/renku-actions/[email protected] | |
env: | |
DOCKER_PASSWORD: ${{ secrets.RENKU_DOCKER_PASSWORD }} | |
DOCKER_USERNAME: ${{ secrets.RENKU_DOCKER_USERNAME }} | |
GITLAB_TOKEN: ${{ secrets.DEV_GITLAB_TOKEN }} | |
KUBECONFIG: "${{ github.workspace }}/renkubot-kube.config" | |
RANCHER_PROJECT_ID: ${{ secrets.CI_RANCHER_PROJECT }} | |
RENKU_RELEASE: renku-kg-dev | |
RENKU_VALUES_FILE: "${{ github.workspace }}/values.yaml" | |
RENKU_VALUES: ${{ secrets.CI_RENKU_KG_VALUES }} | |
RENKUBOT_KUBECONFIG: ${{ secrets.RENKUBOT_DEV_KUBECONFIG }} | |
RENKUBOT_RANCHER_BEARER_TOKEN: ${{ secrets.RENKUBOT_RANCHER_BEARER_TOKEN }} | |
RANCHER_DEV_API_ENDPOINT: ${{ secrets.RANCHER_DEV_API_ENDPOINT }} | |
RENKU_BOT_DEV_PASSWORD: ${{ secrets.RENKU_BOT_DEV_PASSWORD }} | |
RENKU_ANONYMOUS_SESSIONS: true | |
RENKU_TESTS_ENABLED: true | |
TEST_ARTIFACTS_PATH: "tests-artifacts-${{ github.sha }}" | |
renku_graph: "@development" | |
renku: "@master" | |
renku-acceptance-tests: | |
name: Renku acceptance tests against renku-kg-dev | |
runs-on: ubuntu-20.04 | |
needs: deploy-to-graph | |
steps: | |
- uses: SwissDataScienceCenter/renku-actions/[email protected] | |
with: | |
kubeconfig: ${{ secrets.RENKUBOT_DEV_KUBECONFIG }} | |
renku-release: renku-kg-dev | |
gitlab-token: ${{ secrets.DEV_GITLAB_TOKEN }} | |
persist: true | |
s3-results-access-key: ${{ secrets.ACCEPTANCE_TESTS_BUCKET_ACCESS_KEY }} | |
s3-results-secret-key: ${{ secrets.ACCEPTANCE_TESTS_BUCKET_SECRET_KEY }} | |
test-timeout-mins: "140" |