From 45081894bf546ac980a090bf36d6f5e6c0d8bd8c Mon Sep 17 00:00:00 2001 From: Emterry Date: Wed, 4 Dec 2024 17:51:20 +0000 Subject: [PATCH] debug --- .github/workflows/test.yml | 47 +++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 26 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 58b33cec..d471d3e3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,45 +9,40 @@ permissions: {} jobs: test: - runs-on: [self-hosted, management-ecr] + runs-on: ubuntu-latest env: LOGS_BUCKET_NAME: moj-analytics-s3-logs steps: - name: Checkout uses: actions/checkout@v2 - - name: Set up Docker Context for Buildx - id: buildx-context - run: docker context use builders || docker context create builders + # - name: Set up Docker Context for Buildx + # id: buildx-context + # run: docker context use builders || docker context create builders - - name: Set up Docker Buildx - id: buildx - uses: docker/setup-buildx-action@v1 - with: - version: latest - endpoint: builders + # - name: Set up Docker Buildx + # id: buildx + # uses: docker/setup-buildx-action@v1 + # with: + # version: latest + # endpoint: builders + + - name: Install Docker Compose + id: docker-compose + shell: bash + env: + IMAGE_TAG: ${{ github.sha }} + run: | + sudo curl -L "https://github.com/docker/compose/releases/download/v2.21.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose + sudo chmod +x /usr/local/bin/docker-compose + docker-compose --version - # - name: Prep Tags - # id: prep - # run: | - # TAG=noop - # if [[ $GITHUB_REF == refs/tags/* ]]; then - # TAG=${GITHUB_REF#refs/tags/} - # elif [[ $GITHUB_REF == refs/pull/* ]]; then - # TAG="sha-${GITHUB_SHA::8}" - # elif [ "${{ github.event_name }}" = "push" ]; then - # TAG="sha-${GITHUB_SHA::8}" - # fi - # echo ::set-output name=tag::${TAG} - # echo ::set-output name=created::$(date -u +'%Y-%m-%dT%H:%M:%SZ') - name: Build image run: make build env: NETWORK: host - # IMAGE_TAG: ${{ steps.prep.outputs.tag }} - name: Run Python tests (docker-compose) run: make clean && make test env: - NETWORK: default - # IMAGE_TAG: ${{ steps.prep.outputs.tag }} + NETWORK: default \ No newline at end of file