Add F41 tests #245
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Bot commands | |
on: issue_comment | |
jobs: | |
permissions: | |
name: Check Permissions | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check association | |
run: | | |
allowed=("OWNER" "COLLABORATOR") | |
value="\<${{ github.event.issue.author_association }}\>" | |
if [[ ${allowed[@]} =~ $value ]] | |
then | |
exit 0 | |
else | |
exit 1 | |
fi | |
load_vars: | |
uses: ./.github/workflows/build_vars.yml | |
run-all_tests: | |
name: Run All Tests | |
if: > | |
github.event.issue.pull_request && | |
contains(github.event.comment.body, '/run tests') | |
permissions: | |
contents: read | |
packages: write | |
statuses: write | |
needs: | |
- permissions | |
uses: ./.github/workflows/tests.yml | |
with: | |
pr: ${{ github.event.issue.number }} | |
parent_job_name: Run All Tests | |
run_build_container: | |
name: Run Build Container | |
if: > | |
github.event.issue.pull_request && | |
contains(github.event.comment.body, '/run build container') | |
permissions: | |
contents: read | |
packages: write | |
statuses: write | |
needs: | |
- permissions | |
uses: ./.github/workflows/build_container.yml | |
with: | |
pr: ${{ github.event.issue.number }} | |
parent_job_name: Run Build Container | |
run_build_iso: | |
name: Run Build ISO | |
if: > | |
github.event.issue.pull_request && | |
contains(github.event.comment.body, '/run build iso') | |
permissions: | |
contents: read | |
packages: write | |
statuses: write | |
needs: | |
- permissions | |
uses: ./.github/workflows/build_iso.yml | |
with: | |
pr: ${{ github.event.issue.number }} | |
parent_job_name: Run Build ISO | |
run_test_iso: | |
name: Run ISO Tests | |
if: > | |
github.event.issue.pull_request && | |
contains(github.event.comment.body, '/run test iso') | |
permissions: | |
contents: read | |
packages: write | |
statuses: write | |
needs: | |
- permissions | |
- load_vars | |
uses: ./.github/workflows/test_iso.yml | |
with: | |
pr: ${{ github.event.issue.number }} | |
parent_job_name: Run ISO Tests | |
run_test_deployment: | |
name: Run ISO Deployment Tests | |
if: > | |
github.event.issue.pull_request && | |
contains(github.event.comment.body, '/run test iso') | |
permissions: | |
contents: read | |
packages: write | |
statuses: write | |
needs: | |
- permissions | |
- load_vars | |
- run_test_iso | |
uses: ./.github/workflows/test_deployment.yml | |
with: | |
pr: ${{ github.event.issue.number }} | |
parent_job_name: Run ISO Deployment Tests |