67 lines
1.6 KiB
YAML
67 lines
1.6 KiB
YAML
name: Fission CI upgrade
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
paths:
|
|
- '**.go'
|
|
- 'charts/**'
|
|
- 'test/**'
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
paths:
|
|
- '**.go'
|
|
- 'charts/**'
|
|
- 'test/**'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
upgrade-test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout action sources
|
|
uses: actions/checkout@v2.3.4
|
|
|
|
- name: Setup go
|
|
uses: actions/setup-go@v2.1.3
|
|
with:
|
|
go-version: '1.15.12'
|
|
|
|
- name: Setup Helm
|
|
uses: Azure/setup-helm@v1
|
|
with:
|
|
version: v3.3.4
|
|
|
|
- name: Setup Kind Clutser
|
|
uses: engineerd/setup-kind@v0.5.0
|
|
with:
|
|
config: kind.yaml
|
|
|
|
- name: Setup kubectl & fetch node information
|
|
run: |
|
|
kubectl cluster-info --context kind-kind
|
|
kind get kubeconfig --internal >$HOME/.kube/config
|
|
kubectl get nodes
|
|
|
|
- name: Dump system info
|
|
run: |
|
|
source ./test/upgrade_test/fission_objects.sh dump_system_info
|
|
|
|
- name: Install and configure previous stable fission
|
|
run: |
|
|
source ./test/upgrade_test/fission_objects.sh install_stable_release \
|
|
&& create_fission_objects \
|
|
&& test_fission_objects
|
|
|
|
- name: Upgrade fission to latest
|
|
run: |
|
|
source ./test/upgrade_test/fission_objects.sh build_docker_images \
|
|
&& kind_image_load \
|
|
&& install_current_release \
|
|
&& install_fission_cli
|
|
|
|
- name: Test previously created fission objects with new release
|
|
run: |
|
|
source ./test/upgrade_test/fission_objects.sh test_fission_objects |