mirror of
https://github.com/thib8956/nginx-proxy
synced 2025-07-01 14:25:46 +00:00
ci: use docker-gen main on dev branch tests
This commit is contained in:
20
.github/workflows/test.yml
vendored
20
.github/workflows/test.yml
vendored
@ -3,13 +3,16 @@ name: Tests
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- dev
|
||||
paths-ignore:
|
||||
- 'LICENSE'
|
||||
- '**.md'
|
||||
- 'LICENSE'
|
||||
- '**.md'
|
||||
pull_request:
|
||||
paths-ignore:
|
||||
- 'LICENSE'
|
||||
- '**.md'
|
||||
- 'LICENSE'
|
||||
- '**.md'
|
||||
|
||||
jobs:
|
||||
unit:
|
||||
@ -39,6 +42,15 @@ jobs:
|
||||
|
||||
- name: Build Docker nginx proxy test image
|
||||
run: make build-nginx-proxy-test-${{ matrix.base_docker_image }}
|
||||
if: |
|
||||
( github.event_name == 'push' && github.ref != 'refs/heads/dev' ) ||
|
||||
( github.event_name == 'pull_request' && github.base_ref != 'dev' )
|
||||
|
||||
- name: Build Docker nginx proxy dev test image
|
||||
run: make build-nginx-proxy-test-${{ matrix.base_docker_image }}-dev
|
||||
if: |
|
||||
( github.event_name == 'push' && github.ref == 'refs/heads/dev' ) ||
|
||||
( github.event_name == 'pull_request' && github.base_ref == 'dev' )
|
||||
|
||||
- name: Run tests
|
||||
run: pytest
|
||||
|
Reference in New Issue
Block a user