Skip to content

Copy script over

Copy script over #62

Workflow file for this run

name: Matrix
on:
push:
branches:
- 'extend-matrix'
workflow_dispatch:
jobs:
Matrix:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
image-tag: ['latest']
update-strategy: [locked-install, unlocked-install, latest-install]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Build
uses: docker/[email protected]
- name: Install and update dependencies
run: |
echo "Image tag: ${{ matrix.image-tag }}"
echo "Update strategy: ${{ matrix.update-strategy }}"
if [[ "${{ matrix.update-strategy }}" == "locked-install" ]]; then
echo "Running normal test with updated dependencies"
docker build --build-arg IMAGE_TAG=${{ matrix.image-tag }} --target test -t zephir-api2:test .
elif [[ "${{ matrix.update-strategy }}" == "unlocked-install" ]]; then
echo "Running normal test with updated dependencies"
docker build --build-arg IMAGE_TAG=${{ matrix.image-tag }} --target build-unlocked-test -t zephir-api2:test .
elif [[ "${{ matrix.update-strategy }}" == "latest-install" ]]; then
echo "Running normal test with updated dependencies"
docker build --build-arg IMAGE_TAG=${{ matrix.image-tag }} --target build-latest-test -t zephir-api2:test .
fi
generate-summary:
runs-on: ubuntu-latest
needs: Matrix
if: always()
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install Python dependencies
run: |
pip install requests pyyaml
- name: Generate Test Summary Report
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO_OWNER: ${{ github.repository_owner }}
REPO_NAME: ${{ github.event.repository.name }}
WORKFLOW_RUN_ID: ${{ github.run_id }}
run: |
python summary.py
# - name: Upload Summary Report Artifact
# uses: actions/upload-artifact@v3
# with:
# name: test-summary-report
# path: summary_report.txt