ci: Maybe this time
pr CI / Test Suite (pull_request) Canceled after 5m40s

This commit is contained in:
2026-08-07 11:19:12 -04:00
parent 21928f7eac
commit 9368e80abe
+27 -21
View File
@@ -27,15 +27,19 @@ jobs:
--health-timeout 5s --health-timeout 5s
--health-retries 5 --health-retries 5
fake-s3: minio:
image: lphoward/fake-s3:latest image: minio/minio:latest
ports: env:
- 4569:4569 MINIO_ROOT_USER: test
MINIO_ROOT_PASSWORD: test
options: >- options: >-
--health-cmd "curl -f http://localhost:4569 || exit 1" --health-cmd "curl -f http://localhost:9000/minio/health/ready || exit 1"
--health-interval 10s --health-interval 10s
--health-timeout 5s --health-timeout 5s
--health-retries 5 --health-retries 5
ports:
- 9000:9000
command: server /data --console-address ":9001"
steps: steps:
- uses: actions/checkout@v6 - uses: actions/checkout@v6
@@ -57,28 +61,29 @@ jobs:
- name: Setup S3 - name: Setup S3
run: | run: |
# Install AWS CLI # Download and install mc (MinIO Client)
sudo apt update wget https://dl.min.io/client/mc/release/linux-amd64/mc
sudo apt search awscli chmod +x mc
sudo apt install -y curl unzip sudo mv mc /usr/local/bin/
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install
aws --version
# Wait for LocalStack # Wait for MinIO to be ready
until curl -s http://localhost:4569; do until curl -s http://localhost:9000/minio/health/ready; do
echo "Wating for localstack..." echo "Waiting for MinIO..."
sleep 2 sleep 2
done done
echo "MinIO is ready!"
# CHOOSE A BUCKET NAME - this is whatever you want # Configure mc to use MinIO
BUCKET_NAME="soaricarus-ci-bucket" # <-- CHANGE THIS TO WHAT YOUR APP EXPECTS mc alias set localminio http://localhost:9000 test test
# Create the bucket # Create the bucket
aws --endpoint-url=http://localhost:4569 s3 mb s3://$BUCKET_NAME --region ${{ secrets.GARAGE_REGION }} BUCKET_NAME="soaricarus-ci-bucket"
mc mb localminio/$BUCKET_NAME
# Set it as an environment variable for the test step # Verify bucket was created
mc ls localminio/
# Set bucket name for test step
echo "BUCKET_NAME=$BUCKET_NAME" >> $GITHUB_ENV echo "BUCKET_NAME=$BUCKET_NAME" >> $GITHUB_ENV
env: env:
AWS_ACCESS_KEY_ID: ${{ secrets.GARAGE_KEY_ID }} AWS_ACCESS_KEY_ID: ${{ secrets.GARAGE_KEY_ID }}
@@ -100,7 +105,8 @@ jobs:
GARAGE_DEFAULT_SECRET_KEY: ${{ secrets.GARAGE_SECRET }} GARAGE_DEFAULT_SECRET_KEY: ${{ secrets.GARAGE_SECRET }}
GARAGE_S3_REGION: ${{ secrets.GARAGE_REGION }} GARAGE_S3_REGION: ${{ secrets.GARAGE_REGION }}
S3_BUCKET_NAME: "soaricarus-ci-bucket" S3_BUCKET_NAME: "soaricarus-ci-bucket"
S3_ENDPOINT_URL: "http://localhost:3900" S3_ENDPOINT_URL: "http://localhost:9000"
AWS_S3_FORCE_PATH_STYLE: "true"
run: | run: |
mkdir -p ~/.ssh mkdir -p ~/.ssh
echo "${{ secrets.MYREPO_TOKEN }}" > ~/.ssh/soaricarus_models_deploy_key echo "${{ secrets.MYREPO_TOKEN }}" > ~/.ssh/soaricarus_models_deploy_key