Merge pull request #149 from TouK/main #1351
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: | |
pull_request: | |
branches: | |
- main | |
- staging | |
- release/* | |
push: | |
branches: | |
- main | |
- staging | |
- release/* | |
workflow_dispatch: | |
inputs: | |
nussknacker_version: | |
description: "Nussknacker version" | |
required: false | |
type: string | |
env: | |
# for k8s tests purpose - sets correct repo and adds --devel flag | |
DEVEL: ${{ (github.base_ref == 'staging' || github.ref_name == 'staging') && 'true' || 'false' }} | |
NUSSKNACKER_VERSION: ${{ inputs.nussknacker_version != '' && inputs.nussknacker_version || (github.base_ref == 'staging' || github.ref_name == 'staging') && 'staging-latest' || 'latest' }} | |
jobs: | |
docker-compose-streaming-test: | |
runs-on: ubuntu-latest | |
env: | |
# temporarily force NU built with scala 2.12, cause default build (2.13) does not work with Flink out of the box now. | |
NUSSKNACKER_VERSION: ${{ | |
endsWith(inputs.nussknacker_version, 'SNAPSHOT') && format('{0}_{1}', inputs.nussknacker_version, 'scala-2.12') || | |
inputs.nussknacker_version != '' && inputs.nussknacker_version || | |
(github.base_ref == 'staging' || github.ref_name == 'staging') && 'staging-latest_scala-2.12' || | |
'latest_scala-2.12' }} | |
steps: | |
- name: Cancel previous runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ secrets.GITHUB_TOKEN }} | |
- uses: actions/checkout@v3 | |
- name: Print Nussknacker version | |
run: | | |
echo "Nussknacker version: $NUSSKNACKER_VERSION" | |
- name: install quickstart | |
shell: bash | |
run: ./docker/streaming/start.sh | |
- name: Test quickstart | |
shell: bash | |
run: ./common/tests/testDockerStreaming.sh | |
helm-k8s-requestresponse-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cancel previous runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ secrets.GITHUB_TOKEN }} | |
- uses: actions/checkout@v2 | |
- name: Print Nussknacker version | |
run: | | |
echo "Nussknacker version: $NUSSKNACKER_VERSION" | |
- uses: AbsaOSS/[email protected] | |
with: | |
cluster-name: "k3s-default" | |
k3d-version: "v5.4.1" # default version - change with caution, there was some problem after upgrade | |
args: >- | |
--config=.k3d/single-cluster.yml | |
--trace | |
- name: install additional components | |
shell: bash | |
run: ./k8s-helm/additional/install-request-response.sh | |
- name: verify quickstart template | |
shell: bash | |
run: COMMAND=template ./k8s-helm/install-request-response.sh | |
- name: install quickstart | |
shell: bash | |
run: ./k8s-helm/install-request-response.sh --debug | |
- name: Test quickstart | |
shell: bash | |
run: ./common/tests/testK8sRequestResponse.sh | |
helm-k8s-streaming-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cancel previous runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ secrets.GITHUB_TOKEN }} | |
- uses: actions/checkout@v2 | |
- name: Print Nussknacker version | |
run: | | |
echo "Nussknacker version: $NUSSKNACKER_VERSION" | |
- uses: AbsaOSS/[email protected] | |
with: | |
cluster-name: "k3s-default" | |
k3d-version: "v5.4.1" # default version - change with caution, there was some problem after upgrade | |
args: >- | |
--config=.k3d/single-cluster.yml | |
--trace | |
- name: install additional components | |
shell: bash | |
run: ./k8s-helm/additional/install-streaming.sh | |
- name: verify quickstart template | |
shell: bash | |
run: COMMAND=template ./k8s-helm/install-streaming.sh | |
- name: install quickstart | |
shell: bash | |
run: ./k8s-helm/install-streaming.sh --debug | |
- name: Test quickstart | |
shell: bash | |
run: ./common/tests/testK8sStreaming.sh |