Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Execute apply_fixes integration tests on macos #213

Merged
merged 2 commits into from
Jan 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/actions/prepare_buildozer/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: 'Prepare Buildozer'
description: 'Download buildozer and make it available on PATH'
inputs:
version:
description: 'Buildozer version'
required: true
runs:
using: "composite"
steps:
- run: |
# Determine buildozer URL
BASE_URL="https://github.com/bazelbuild/buildtools/releases/download/v${{ inputs.version }}"
if [[ "${RUNNER_OS}" == "Linux" ]]; then
BUILDOZER_URL="${BASE_URL}/buildozer-linux-amd64"
elif [ "${RUNNER_OS}" == "macOS" ]; then
BUILDOZER_URL="${BASE_URL}/buildozer-darwin-amd64"
elif [ "${RUNNER_OS}" == "Windows" ]; then
BUILDOZER_URL="${BASE_URL}/buildozer-windows-amd64.exe"
else
echo "'${RUNNER_OS}' is not supported"
exit 1
fi

# Download buildozer
BUILDOZER_DIR="/tmp/bin"
BUILDOZER_PATH="${BUILDOZER_DIR}/buildozer"
mkdir -p "${BUILDOZER_DIR}"
wget --no-verbose "${BUILDOZER_URL}" -O "${BUILDOZER_PATH}"

# Make buildozer available on PATH for subsequent actions
chmod +x "${BUILDOZER_PATH}"
echo "${BUILDOZER_DIR}" >> $GITHUB_PATH
shell: bash
15 changes: 8 additions & 7 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,18 +61,19 @@ jobs:
python execute_tests.py -b 7.0.0 -p 3.8.18

integration-tests-apply-fixes:
runs-on: ubuntu-22.04
strategy:
matrix:
os: [ ubuntu-22.04, macos-12 ]
runs-on: ${{ matrix.os }}
needs: [ fast-tests ]
steps:
- run: |
mkdir --parents /tmp/bin
wget --no-verbose https://github.com/bazelbuild/buildtools/releases/download/v6.4.0/buildozer-linux-amd64 -O /tmp/bin/buildozer
chmod +x /tmp/bin/buildozer
- uses: actions/checkout@v4
- uses: ./.github/actions/prepare_buildozer
with:
version: '6.4.0'
- name: Integration tests - Applying fixes
run: |
export PATH=/tmp/bin:$PATH
./test/apply_fixes/execute_tests.py
python test/apply_fixes/execute_tests.py

integration-tests-examples:
strategy:
Expand Down
Loading