Skip to content

Commit

Permalink
Add a way to provide custom overrides to the test run action
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonsturgeon committed Oct 16, 2024
1 parent 022e914 commit c929446
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ on:
description: "Which GMod branch to run your tests on. Must be: 'live' or 'x86-64'"
default: "live"

custom-overrides:
type: string
required: false
description: "An absolute path with custom files to copy to the server directly. Structure should match the contents of `garrysmod/`"

jobs:
test:
name: "Run tests"
Expand Down Expand Up @@ -118,6 +123,11 @@ jobs:
mkdir --verbose --parents "$dest"
cp --recursive --verbose $source/* "$dest/"
- name: Sync custom overrides
if: ${{ inputs.custom-overrides }}
run: |
rsync --verbose --archive ${{ inputs.custom-overrides }} $GITHUB_WORKSPACE/garrysmod_override/
- name: Pull GLuaTest Runner
env:
REQUIREMENTS: "${{ github.workspace }}/project/${{ inputs.requirements }}"
Expand Down

0 comments on commit c929446

Please sign in to comment.