Skip to content

feat(workflows/test): Add matrix for different tests #65

feat(workflows/test): Add matrix for different tests

feat(workflows/test): Add matrix for different tests #65

name: Test
on:
push:
paths-ignore:
- 'README.md'
- 'dist/**'
- 'LICENSE'
- '.gitignore'
- '.github/workflows/python-publish.yml'
jobs:
test:
strategy:
matrix:
os: [ubuntu]
os_version: [20.04, 22.04]
postgres_version: [9.5, 10, 11, 12, 13]
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Collect Workflow Telemetry
uses: runforesight/workflow-telemetry-action@v1
- name: Start containers
run: docker-compose -f "deployment/docker-compose.yml" up -d --build
env:
OS: ${{os}}

Check failure on line 31 in .github/workflows/integration-test.yml

View workflow run for this annotation

GitHub Actions / Test

Invalid workflow file

The workflow is not valid. .github/workflows/integration-test.yml (Line: 31, Col: 15): Unrecognized named-value: 'os'. Located at position 1 within expression: os .github/workflows/integration-test.yml (Line: 32, Col: 23): Unrecognized named-value: 'os_version'. Located at position 1 within expression: os_version
OS_VERSION: ${{os_version}}
POSTGRES_VERSION: ${{postgres_version}}
- name: Sleep so containers are ready
run: sleep 15
- name: Check container status
run : docker ps -a
- name: Run tests
run: docker-compose -f "deployment/docker-compose.yml" exec -T replica python3 integration-test.py