diff --git a/.github/workflows/bridgestatus.yml b/.github/workflows/bridgestatus.yml new file mode 100644 index 000000000000..04e140f2ca74 --- /dev/null +++ b/.github/workflows/bridgestatus.yml @@ -0,0 +1,55 @@ +name: Bridge status overview + +on: + workflow_dispatch: + schedule: + - cron: 0 0 * * 4 + +jobs: + update-comment: + name: Update comment + runs-on: ubuntu-latest + env: + PYTHONUNBUFFERED: 1 + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Setup environment + run: |- + cp .github/prtester-requirements.txt requirements.txt + - name: Build docker image + run: |- + docker build --tag rssbridge . + - name: Run docker image + run: |- + docker run --detach --env RSSBRIDGE_system_enabled_bridges=* --env RSSBRIDGE_system_enable_debug_mode=true --publish 3000:80 rssbridge + - name: Setup python + uses: actions/setup-python@v4 + with: + python-version: '3.7' + cache: 'pip' + - name: Install python requirements + run: |- + pip install --requirement requirements.txt + - name: Run prtester.py + run: |- + python .github/prtester.py --title "${{ vars.OVERVIEW_ISSUE_COMMENT_TITLE }}" --output-file "comment.md" --reduced-upload --instances "http://localhost:3000" + - name: Upload artifacts + uses: actions/upload-artifact@v3 + with: + path: comment.md + if-no-files-found: error + - name: Find comment + uses: peter-evans/find-comment@v2 + id: find_comment + with: + issue-number: ${{ vars.OVERVIEW_ISSUE_ID }} + comment-author: 'github-actions[bot]' + body-includes: ${{ vars.OVERVIEW_ISSUE_COMMENT_TITLE }} + - name: Update comment + uses: peter-evans/create-or-update-comment@v2 + with: + issue-number: ${{ vars.OVERVIEW_ISSUE_ID }} + comment-id: ${{ steps.find_comment.outputs.comment-id }} + body-file: comment.md + edit-mode: replace diff --git a/.github/workflows/dockerbuild.yml b/.github/workflows/dockerbuild.yml deleted file mode 100644 index 82d8611ac086..000000000000 --- a/.github/workflows/dockerbuild.yml +++ /dev/null @@ -1,61 +0,0 @@ -name: Build Image on Commit and Release - -on: - push: - branches: - - 'master' - tags: - - '20*' - -env: - DOCKERHUB_SLUG: rssbridge/rss-bridge - GHCR_SLUG: ghcr.io/rss-bridge/rss-bridge - -jobs: - bake: - runs-on: ubuntu-latest - steps: - - - name: Checkout - uses: actions/checkout@v3 - - - name: Docker meta - id: docker_meta - uses: docker/metadata-action@v4 - with: - images: | - ${{ env.DOCKERHUB_SLUG }} - ${{ env.GHCR_SLUG }} - tags: | - type=raw,value=latest - type=sha - type=ref,event=tag,enable=${{ startsWith(github.ref, 'refs/tags/20') }} - type=raw,value=stable,enable=${{ startsWith(github.ref, 'refs/tags/20') }} - - - name: Set up QEMU - uses: docker/setup-qemu-action@v2 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - - name: Login to DockerHub - uses: docker/login-action@v2 - with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} - - - name: Login to GitHub Container Registry - uses: docker/login-action@v2 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Build and push - uses: docker/bake-action@v2 - with: - files: | - ./docker-bake.hcl - ${{ steps.docker_meta.outputs.bake-file }} - targets: image-all - push: true diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml deleted file mode 100644 index b00c898ae990..000000000000 --- a/.github/workflows/documentation.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: Documentation - -on: - push: - paths: - - 'docs/**' - -jobs: - documentation: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - with: - persist-credentials: false - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: 8.0 - - name: Install dependencies - run: composer global require daux/daux.io - - name: Generate documentation - run: daux generate - - name: Deploy same repository 🚀 - uses: JamesIves/github-pages-deploy-action@v4 - with: - folder: "static" - branch: gh-pages diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 83911ab6eb0c..d92bd63d98c7 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,10 +1,9 @@ name: Lint on: - push: - branches: [ master ] + workflow_dispatch: pull_request: - branches: [ master ] + branches: '**' jobs: phpcs: diff --git a/.github/workflows/prhtmlgenerator.yml b/.github/workflows/prhtmlgenerator.yml index 7985250a6d68..98e56eddf24d 100644 --- a/.github/workflows/prhtmlgenerator.yml +++ b/.github/workflows/prhtmlgenerator.yml @@ -2,7 +2,7 @@ name: 'PR Testing' on: pull_request_target: - branches: [ master ] + branches: '**' jobs: test-pr: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e7684e6bb6e1..e56756bcb182 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,10 +1,9 @@ name: Tests on: - push: - branches: [ master ] + workflow_dispatch: pull_request: - branches: [ master ] + branches: '**' jobs: phpunit8: