feat(ci): smoke test before nightly release
Adding common e2e workflow as a first simple smoke test
Ref
@@ -50,6 +50,16 @@ jobs:
uses: actions/checkout@v2
with:
ref: ${{ inputs.ref }}
+ persist-credentials: false
+ submodules: recursive
+
+ # Reuse the testing flows used for PRs
+ - name: Smoke tests
+ uses: ./.github/actions/e2e-common
+ with:
+ cluster-config-data: ${{ secrets.E2E_CLUSTER_CONFIG }}
+ cluster-kube-config-data: ${{ secrets.E2E_KUBE_CONFIG }}
+
- name: Cache modules
uses: actions/cache@v1
with:
@@ -57,11 +67,13 @@ jobs:
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- - name: Get nightly version
+ - name: Get nightly version and update date
shell: bash
run: |
V=$(make get-version | sed s/-SNAPSHOT/-nightly/)
+ D=$(date)
echo "VERSION=$V" >> $GITHUB_ENV
+ echo "UPD_DATE=$D" >> $GITHUB_ENV
- name: Global Env
run: |
echo "Using VERSION=${{ env.VERSION }}"
@@ -105,6 +117,8 @@ jobs:
```
kamel install --olm=false --maven-repository=${{ env.MAVEN_REPOSITORY }}
```
+
+ NOTE: last updated on ${{ env.UPD_DATE }}
token: ${{ secrets.GITHUB_TOKEN }}
draft: false
prerelease: true
