aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/dockertests.yml
blob: 9daa2adc3e831c6783ffbb10e537330a5b557c8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
name: Dockertests

on:
  [push]

jobs:
  dockertests:
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      matrix:
        docker-image: [debian, fedora, ubuntu, redhat]
    steps:
    - uses: actions/checkout@v3
    - name: Setup docker container
      run: |
        docker build -t pyfakefs -f $GITHUB_WORKSPACE/.github/workflows/dockerfiles/Dockerfile_${{ matrix.docker-image }} . --build-arg github_repo=$GITHUB_REPOSITORY --build-arg github_branch=$GITHUB_REF_NAME
    - name: Run tests
      run: docker run -t pyfakefs