Skip to content

test: Single compose file #5

test: Single compose file

test: Single compose file #5

Workflow file for this run

name: Docker Test
on:
push:
branches-ignore:
- "main"
tags-ignore:
- "**"
jobs:
docker-integration-test-postgres:
name: Run Cached Integration Tests (on Postgres)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 20
check-latest: true
cache: "npm"
cache-dependency-path: "**/package-lock.json"
- name: Setup Docker
uses: docker/setup-buildx-action@v3
#- name: Cache Docker
# uses: actions/cache@v3
# with:
# path: /tmp/.buildx-cache
# key: ${{ runner.os }}-buildx-${{ github.sha }}
# restore-keys: |
# ${{ runner.os }}-buildx-
#- name: Cache npm dependencies
# uses: actions/cache@v3
# with:
# path: |
# ./runtime/node_modules
# key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
# restore-keys: |
# ${{ runner.os }}-npm-
- name: Install script dependencies
run: npm install --prefix ./.ci
- name: Clear Docker Container
run: python .ci/integrationTest.py postgres down
- name: Build Docker
uses: docker/build-push-action@v5
with:
context: .
file: ./.ci/docker-compose.postgres.yml
push: false
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Run Tests
run: python .ci/integrationTest.py build