Nightly Test #1306
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Nightly Test | |
# Run the nightly tests at at 6 AM UTC | |
on: | |
schedule: | |
- cron: "0 6 * * *" | |
jobs: | |
docker: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Cache Docker layers | |
uses: actions/cache@v4 | |
with: | |
path: /tmp/.buildx-cache | |
key: ${{ runner.os }}-build-x-${{ github.sha }} | |
restore-keys: | | |
${{ runner.os }}-build-x- | |
- name: Build | |
uses: docker/build-push-action@v6.7.0 | |
with: | |
push: false | |
load: true | |
tags: oittaa/gcp-storage-emulator:latest | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache | |
- name: Docker container up | |
run: docker run -d --rm -p 8080:8080 --name gcp-storage-emulator oittaa/gcp-storage-emulator | |
- name: Wait 10 seconds | |
run: sleep 10 | |
- name: Check running containers | |
run: docker ps -a | |
- name: Check the container reachability | |
run: curl -s --retry 10 --retry-connrefused http://localhost:8080/ | |
- name: Check Docker logs | |
run: docker logs gcp-storage-emulator | |
- name: Docker container down | |
run: docker stop gcp-storage-emulator |