From 5ccb796f738717175ab3561938ddecb5b3f00469 Mon Sep 17 00:00:00 2001 From: iamtatsuki05 Date: Sun, 23 Jun 2024 04:14:34 +0900 Subject: [PATCH] test docker workflow --- .github/workflows/test_docker.yml | 35 +++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/test_docker.yml diff --git a/.github/workflows/test_docker.yml b/.github/workflows/test_docker.yml new file mode 100644 index 0000000..cb5d6d4 --- /dev/null +++ b/.github/workflows/test_docker.yml @@ -0,0 +1,35 @@ +name: test-docker + +on: + pull_request: + branches: + - '**' + workflow_call: + inputs: + check-service-test: + required: false + default: false + type: boolean + +jobs: + rspec: + runs-on: ubuntu-latest + timeout-minutes: 30 + + steps: + - uses: actions/checkout@v3 + with: + submodules: recursive + # - uses: docker/setup-buildx-action@v2 + # - uses: docker/build-push-action@v4 + # with: + # context: ${{ matrix.service }}/docker/cpu + # cache-from: type=gha + # cache-to: type=gha,mode=max + - name: Setup docker + shell: bash + run: | + docker compose build python-cpu --progress=plain + docker compose up -d python-cpu + - name: Test + run: docker compose exec python-cpu poetry run tox