---
name: Upgrade

on:
  pull_request:

jobs:
  upgrade-e2e:
    name: Latest Release to Latest Version
    timeout-minutes: 45
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
    steps:
      - uses: actions/checkout@master

      - name: Install an old cluster, upgrade it and check it
        uses: submariner-io/shipyard/gh-actions/upgrade-e2e@release-0.9

      - name: Post Mortem
        if: failure()
        uses: submariner-io/shipyard/gh-actions/post-mortem@release-0.9
