Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add steps and debug workflow #50

Merged
merged 4 commits into from
Sep 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/debug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: GlueTrans Debug Workflow
on:
workflow_dispatch:
inputs:
custom_gluetun_version:
description: 'Set a version of Gluetun to test against'
required: false
default: v3.39
tmate_enabled:
type: boolean
description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)'
required: false
default: false

jobs:
tmate-debug:
if: ${{ github.event_name == 'workflow_dispatch' && github.actor == 'miklosbagi' && github.event.inputs.tmate_enabled == 'true' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: mxschmitt/action-tmate@v3
name: Tmate Debug Session
with:
limit-access-to-actor: true

custom-gluetun-version-check:
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.custom_gluetun_version != '' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build env and run tests
run: make GLUETUN_VERSION=${{ github.event.inputs.custom_gluetun_version }} pr-test
61 changes: 18 additions & 43 deletions .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,6 @@ on:
- synchronize
workflow_dispatch:

env:
GLUETRANS_VPN_USERNAME: ${{ secrets.GLUETRANS_VPN_USERNAME }}
GLUETRANS_VPN_PASSWORD: ${{ secrets.GLUETRANS_VPN_PASSWORD }}
GLUETRANS_VPN_REGIONS: ${{ secrets.GLUETRANS_VPN_REGIONS }}
GLUETRANS_TRANSMISSION_USERNAME: ${{ secrets.GLUETRANS_TRANSMISSION_USERNAME }}
GLUETRANS_TRANSMISSION_PASSWORD: ${{ secrets.GLUETRANS_TRANSMISSION_PASSWORD }}
GLUETRANS_SONAR_ORGANIZATION: ${{ secrets.GLUETRANS_SONAR_ORGANIZATION }}
GLUETRANS_SONAR_PROJECT_KEY: ${{ secrets.GLUETRANS_SONAR_PROJECT_KEY }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

jobs:
lint-docker:
runs-on: ubuntu-latest
Expand All @@ -37,51 +27,36 @@ jobs:
- uses: actions/checkout@v3
- uses: ludeeus/action-shellcheck@2.0.0

pr-check-gluetun-v3_36:
pr-check-against-supported-gluetun-versions:
env:
GLUETRANS_VPN_USERNAME: ${{ secrets.GLUETRANS_VPN_USERNAME }}
GLUETRANS_VPN_PASSWORD: ${{ secrets.GLUETRANS_VPN_PASSWORD }}
GLUETRANS_VPN_REGIONS: ${{ secrets.GLUETRANS_VPN_REGIONS }}
GLUETRANS_TRANSMISSION_USERNAME: ${{ secrets.GLUETRANS_TRANSMISSION_USERNAME }}
GLUETRANS_TRANSMISSION_PASSWORD: ${{ secrets.GLUETRANS_TRANSMISSION_PASSWORD }}
GLUETRANS_SONAR_ORGANIZATION: ${{ secrets.GLUETRANS_SONAR_ORGANIZATION }}
GLUETRANS_SONAR_PROJECT_KEY: ${{ secrets.GLUETRANS_SONAR_PROJECT_KEY }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build env and run tests
- name: Test against Gluetun v3.36
run: make GLUETUN_VERSION=v3.36 pr-test

pr-check-gluetun-v3_37:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build env and run tests
- name: Test against Gluetun v3.37
run: make GLUETUN_VERSION=v3.37 pr-test

pr-check-gluetun-v3_37_1:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build env and run tests
- name: Test against Gluetun v3.37.1
run: make GLUETUN_VERSION=v3.37.1 pr-test

pr-check-gluetun-v3_38:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build env and run tests
- name: Test against Gluetun v3.38
run: make GLUETUN_VERSION=v3.38 pr-test

pr-check-gluetun-v3_38_1:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build env and run tests
- name: Test against Gluetun v3.38.1
run: make GLUETUN_VERSION=v3.38.1 pr-test

pr-check-gluetun-v3_39:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build env and run tests
- name: Test against Gluetun v3.39
run: make GLUETUN_VERSION=v3.39 pr-test

pr-check-gluetun-latest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build env and run tests
run: make GLUETUN_VERSION=latest pr-test
- name: Test against Gluetun latest
run: make GLUETUN_VERSION=latest pr-test
Loading