mirror of
https://github.com/Mailu/Mailu.git
synced 2025-05-31 23:10:01 +02:00
Switch back to sequential workflow
This commit is contained in:
parent
006da4c5e4
commit
606c039a6f
126
.github/workflows/CI.yml
vendored
126
.github/workflows/CI.yml
vendored
@ -30,8 +30,8 @@ on:
|
|||||||
################################################
|
################################################
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build-test:
|
||||||
name: build
|
name: build and test
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@ -63,24 +63,6 @@ jobs:
|
|||||||
DOCKER_ORG: ${{ secrets.DOCKER_ORG }}
|
DOCKER_ORG: ${{ secrets.DOCKER_ORG }}
|
||||||
run: docker-compose -f tests/build.yml build
|
run: docker-compose -f tests/build.yml build
|
||||||
|
|
||||||
#NOTE: It appears the filter test depends on the core test. The filter test requires an email user
|
|
||||||
#that is created by the core test.
|
|
||||||
core-test:
|
|
||||||
name: core test
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs:
|
|
||||||
- build
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- name: Extract branch name
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
echo "BRANCH=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
|
|
||||||
- name: install python packages
|
|
||||||
run: python3 -m pip install -r tests/requirements.txt
|
|
||||||
- uses: satackey/action-docker-layer-caching@v0.0.11
|
|
||||||
# Ignore the failure of a step and avoid terminating the job.
|
|
||||||
continue-on-error: true
|
|
||||||
- name: copy all certs
|
- name: copy all certs
|
||||||
run: sudo -- sh -c 'mkdir -p /mailu && cp -r tests/certs /mailu && chmod 600 /mailu/certs/*'
|
run: sudo -- sh -c 'mkdir -p /mailu && cp -r tests/certs /mailu && chmod 600 /mailu/certs/*'
|
||||||
- name: test core suite
|
- name: test core suite
|
||||||
@ -90,74 +72,20 @@ jobs:
|
|||||||
TRAVIS_BRANCH: ${{ env.BRANCH }}
|
TRAVIS_BRANCH: ${{ env.BRANCH }}
|
||||||
DOCKER_ORG: ${{ secrets.DOCKER_ORG }}
|
DOCKER_ORG: ${{ secrets.DOCKER_ORG }}
|
||||||
|
|
||||||
filter-test:
|
|
||||||
name: filter test
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs:
|
|
||||||
- build
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- name: Extract branch name
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
echo "BRANCH=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
|
|
||||||
- name: install python packages
|
|
||||||
run: python3 -m pip install -r tests/requirements.txt
|
|
||||||
- uses: satackey/action-docker-layer-caching@v0.0.11
|
|
||||||
# Ignore the failure of a step and avoid terminating the job.
|
|
||||||
continue-on-error: true
|
|
||||||
- name: copy all certs
|
|
||||||
run: sudo -- sh -c 'mkdir -p /mailu && cp -r tests/certs /mailu && chmod 600 /mailu/certs/*'
|
|
||||||
- name: 'test clamvav'
|
- name: 'test clamvav'
|
||||||
run: python tests/compose/test.py filters 2
|
run: python tests/compose/test.py filters 2
|
||||||
env:
|
env:
|
||||||
MAILU_VERSION: ${{ env.BRANCH }}
|
MAILU_VERSION: ${{ env.BRANCH }}
|
||||||
TRAVIS_BRANCH: ${{ env.BRANCH }}
|
TRAVIS_BRANCH: ${{ env.BRANCH }}
|
||||||
DOCKER_ORG: ${{ secrets.DOCKER_ORG }}
|
DOCKER_ORG: ${{ secrets.DOCKER_ORG }}
|
||||||
|
|
||||||
fetch-test:
|
|
||||||
name: fetch test
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs:
|
|
||||||
- build
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- name: Extract branch name
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
echo "BRANCH=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
|
|
||||||
- name: install python packages
|
|
||||||
run: python3 -m pip install -r tests/requirements.txt
|
|
||||||
- uses: satackey/action-docker-layer-caching@v0.0.11
|
|
||||||
# Ignore the failure of a step and avoid terminating the job.
|
|
||||||
continue-on-error: true
|
|
||||||
- name: copy all certs
|
|
||||||
run: sudo -- sh -c 'mkdir -p /mailu && cp -r tests/certs /mailu && chmod 600 /mailu/certs/*'
|
|
||||||
- name: test fetch
|
- name: test fetch
|
||||||
run: python tests/compose/test.py fetchmail 1
|
run: python tests/compose/test.py fetchmail 1
|
||||||
env:
|
env:
|
||||||
MAILU_VERSION: ${{ env.BRANCH }}
|
MAILU_VERSION: ${{ env.BRANCH }}
|
||||||
TRAVIS_BRANCH: ${{ env.BRANCH }}
|
TRAVIS_BRANCH: ${{ env.BRANCH }}
|
||||||
DOCKER_ORG: ${{ secrets.DOCKER_ORG }}
|
DOCKER_ORG: ${{ secrets.DOCKER_ORG }}
|
||||||
|
|
||||||
rainloop-test:
|
|
||||||
name: rainloop test
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs:
|
|
||||||
- build
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- name: Extract branch name
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
echo "BRANCH=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
|
|
||||||
- name: install python packages
|
|
||||||
run: python3 -m pip install -r tests/requirements.txt
|
|
||||||
- uses: satackey/action-docker-layer-caching@v0.0.11
|
|
||||||
# Ignore the failure of a step and avoid terminating the job.
|
|
||||||
continue-on-error: true
|
|
||||||
- name: copy all certs
|
|
||||||
run: sudo -- sh -c 'mkdir -p /mailu && cp -r tests/certs /mailu && chmod 600 /mailu/certs/*'
|
|
||||||
- name: test rainloop
|
- name: test rainloop
|
||||||
run: python tests/compose/test.py rainloop 1
|
run: python tests/compose/test.py rainloop 1
|
||||||
env:
|
env:
|
||||||
@ -165,49 +93,13 @@ jobs:
|
|||||||
TRAVIS_BRANCH: ${{ env.BRANCH }}
|
TRAVIS_BRANCH: ${{ env.BRANCH }}
|
||||||
DOCKER_ORG: ${{ secrets.DOCKER_ORG }}
|
DOCKER_ORG: ${{ secrets.DOCKER_ORG }}
|
||||||
|
|
||||||
roundcube-test:
|
|
||||||
name: roundcube test
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs:
|
|
||||||
- build
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- name: Extract branch name
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
echo "BRANCH=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
|
|
||||||
- name: install python packages
|
|
||||||
run: python3 -m pip install -r tests/requirements.txt
|
|
||||||
- uses: satackey/action-docker-layer-caching@v0.0.11
|
|
||||||
# Ignore the failure of a step and avoid terminating the job.
|
|
||||||
continue-on-error: true
|
|
||||||
- name: copy all certs
|
|
||||||
run: sudo -- sh -c 'mkdir -p /mailu && cp -r tests/certs /mailu && chmod 600 /mailu/certs/*'
|
|
||||||
- name: test roundcube
|
- name: test roundcube
|
||||||
run: python tests/compose/test.py roundcube 1
|
run: python tests/compose/test.py roundcube 1
|
||||||
env:
|
env:
|
||||||
MAILU_VERSION: ${{ env.BRANCH }}
|
MAILU_VERSION: ${{ env.BRANCH }}
|
||||||
TRAVIS_BRANCH: ${{ env.BRANCH }}
|
TRAVIS_BRANCH: ${{ env.BRANCH }}
|
||||||
DOCKER_ORG: ${{ secrets.DOCKER_ORG }}
|
DOCKER_ORG: ${{ secrets.DOCKER_ORG }}
|
||||||
|
|
||||||
webdav-test:
|
|
||||||
name: webdav test
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs:
|
|
||||||
- build
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- name: Extract branch name
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
echo "BRANCH=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
|
|
||||||
- name: install python packages
|
|
||||||
run: python3 -m pip install -r tests/requirements.txt
|
|
||||||
- uses: satackey/action-docker-layer-caching@v0.0.11
|
|
||||||
# Ignore the failure of a step and avoid terminating the job.
|
|
||||||
continue-on-error: true
|
|
||||||
- name: copy all certs
|
|
||||||
run: sudo -- sh -c 'mkdir -p /mailu && cp -r tests/certs /mailu && chmod 600 /mailu/certs/*'
|
|
||||||
- name: test webdav
|
- name: test webdav
|
||||||
run: python tests/compose/test.py webdav 1
|
run: python tests/compose/test.py webdav 1
|
||||||
env:
|
env:
|
||||||
@ -219,13 +111,7 @@ jobs:
|
|||||||
name: deploy step
|
name: deploy step
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs:
|
needs:
|
||||||
- build
|
- build-test
|
||||||
- core-test
|
|
||||||
- filter-test
|
|
||||||
- fetch-test
|
|
||||||
- rainloop-test
|
|
||||||
- roundcube-test
|
|
||||||
- webdav-test
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Extract branch name
|
- name: Extract branch name
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
echo "Creating user required for next test ..."
|
|
||||||
# Should not fail and update the password; update mode
|
|
||||||
docker-compose -f tests/compose/filters/docker-compose.yml exec -T admin flask mailu admin admin mailu.io 'password' --mode=update || exit 1
|
|
||||||
docker-compose -f tests/compose/filters/docker-compose.yml exec -T admin flask mailu user user mailu.io 'password' || exit 1
|
|
||||||
echo "User created successfully"
|
|
Loading…
x
Reference in New Issue
Block a user