mirror of
https://github.com/wallabag/docker
synced 2025-12-11 08:46:27 +00:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v5...v6) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
52 lines
1.2 KiB
YAML
52 lines
1.2 KiB
YAML
name: "CI"
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- "master"
|
|
push:
|
|
branches:
|
|
- "master"
|
|
|
|
jobs:
|
|
test:
|
|
name: "Testing with database: ${{ matrix.database }}"
|
|
runs-on: "ubuntu-latest"
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
database:
|
|
- "default"
|
|
- "sqlite"
|
|
- "mariadb"
|
|
- "postgresql"
|
|
|
|
steps:
|
|
- name: "Checkout"
|
|
uses: actions/checkout@v6
|
|
with:
|
|
fetch-depth: 2
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v6
|
|
with:
|
|
python-version: 3.11
|
|
|
|
- name: "Build image"
|
|
run: docker compose -f tests/docker-compose.${{ matrix.database }}.yml build
|
|
|
|
- name: "Install dependencies"
|
|
run: pip install pytest pytest-docker requests
|
|
|
|
- name: "Run tests"
|
|
run: py.test --database=${{ matrix.database }} tests/
|
|
|
|
- name: "Get docker logs"
|
|
if: ${{ always() }}
|
|
run: docker compose -p "wallabag_${{ matrix.database }}" -f tests/docker-compose.${{ matrix.database }}.yml logs wallabag
|
|
|
|
- name: "Cleanup environment"
|
|
if: ${{ always() }}
|
|
run: docker compose -p "wallabag_${{ matrix.database }}" -f tests/docker-compose.${{ matrix.database }}.yml down -v
|