Skip to content

automatically convert from 2.2 to 2.3 finalizers (#163) #265

automatically convert from 2.2 to 2.3 finalizers (#163)

automatically convert from 2.2 to 2.3 finalizers (#163) #265

Workflow file for this run

# This workflow will build MCAD and run unit test and E2E tests
name: MCAD-CI
on:
push:
branches: [main]
pull_request:
branches:
- 'main'
- 'release-*'
jobs:
MCAD-CI:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
mode: [unified, split]
steps:
- name: checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set latest tag and Branch name
run: |
echo "GIT_BRANCH=gha-ci" >> $GITHUB_ENV
echo "TAG=$GITHUB_RUN_ID" >> $GITHUB_ENV
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: './go.mod'
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Run pre-commit checks
run: |
pip install pre-commit
pre-commit run --show-diff-on-failure --color=always --all-files
- name: Build
run: make build
- name: Run Unit tests
run: make run-test
- name: Build Image
run: |
make docker-build -e GIT_BRANCH=${{ env.GIT_BRANCH }} TAG=${{ env.GIT_BRANCH }}-${{ env.TAG }}
- name: Run E2E tests
env:
MCAD_DEPLOYMENT_MODE: ${{ matrix.mode }}
run: |
make run-e2e-existing-images -e GIT_BRANCH=${{ env.GIT_BRANCH }} TAG=${{ env.GIT_BRANCH }}-${{ env.TAG }}