Skip to content

Basic Windows and Linux CI workflows #4

Basic Windows and Linux CI workflows

Basic Windows and Linux CI workflows #4

name: CLI container-less on Windows
on:
schedule:
- cron: '12 1,13 * * *'
pull_request:
branches: [ "main" ]
paths-ignore:
- '**.md'
push:
branches: [ "main" ]
paths-ignore:
- '**.md'
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'microsoft'
java-version: '21'
- run: java --version
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- run: python -m pip install --upgrade pip
- name: Set up Igor's kantra installer
run: |
git clone https://github.com/ibragins/konveyor-cli-deployment.git
cd konveyor-cli-deployment
pip install -r requirements.txt
echo '{"misc_downstream_path": "${{ github.workspace }}","temp_dir": "${{ github.workspace }}","extract_binary": "mta-cli-binary-extract.py","get_images_output": "get-image-build-details.py ","bundle": "","no_brew": "--no-brew","ssh_user": "","ssh_key": ""}' >> config.json
.\install_cli.py --upstream true
dir
- name: Configure Test Environment Variables
run: |
cp .env.example .env
echo "KANTRA_CLI_PATH=${{ github.workspace }}/kantra" >> .env
echo "REPORT_OUTPUT_PATH=${{ github.workspace }}/report" >> .env
echo "PROJECT_PATH=${{ github.workspace }}" >> .env
cat .env
working-directory: ${{ github.workspace }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run transform tests
run: |
pytest -s -k "transform and not bug"
- name: Run common option tests
run: |
pytest -s -k "common and not bug"
- name: Run advanced option tests
run: |
pytest -k "advanced and not bug"
- name: Run simple standard analysis test
run: |
pytest -s -k "jee_example_app and not bug"
- name: Save analysis output
uses: actions/upload-artifact@v4
with:
name: kantra-outputs
path: ${{ github.workspace }}/report