aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/dockertests.yml
blob: af773468f99d58fcf4d327657f37bb20a831059e (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: [centos, debian, fedora, ubuntu]
    steps:
    - uses: actions/checkout@v2
    - 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=$(basename $GITHUB_REF)
    - name: Run tests
      run: docker run -t pyfakefs