Skip to content

minimize

minimize #732

Workflow file for this run

name: docker build and test
on:
push:
branches:
- "**"
pull_request:
branches:
- "main"
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
tag_flags: ["--exclude-tag selenium"]
steps:
- name: Check out CourtListener
uses: actions/checkout@v4
with:
path: courtlistener
- name: Create the .env settings file
working-directory: courtlistener/
run: cp .env.example .env.dev
# Build and cache docker images so tests are always run on the latest
# dependencies
- name: Set up docker Buildx
uses: docker/setup-buildx-action@v3
# Docker images are ready. Start them up.
- name: Create docker network
run: docker network create -d bridge --attachable cl_net_overlay
- name: Start cl-postgres
working-directory: courtlistener/docker/courtlistener
run: docker compose -f docker-compose.yml -f docker-compose.tmpfs.yml up -d cl-postgresql
- name: stat cl-postgres cert
run: docker exec cl-postgres stat /etc/ssl/private/cl-postgres.key
- name: Show the docker startup logs
working-directory: courtlistener/docker/courtlistener
run: sleep 10
- name: List docker container statuses
run: docker container ps
- name: Show the docker startup logs
working-directory: courtlistener/docker/courtlistener
run: docker compose logs --since 90m
# Cancel the current workflow (tests) for pull requests (head_ref) only. See:
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-using-a-fallback-value
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true