Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
leojonathanoh committed Nov 10, 2023
1 parent ba3b808 commit b6601b2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/ci-master-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@ jobs:
STEAM_USERNAME: ${{ secrets.STEAM_USERNAME }}
STEAM_PASSWORD: ${{ secrets.STEAM_PASSWORD }}

test-game-image-game-version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Test
run: |
./test/test-game-image-game-version.sh
update-draft-release:
needs:
- test-build-hlds
Expand Down
9 changes: 7 additions & 2 deletions test/test-game-image-game-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,10 @@ set -eu
SCRIPT_DIR=$( cd $( dirname "$0" ) && pwd )
cd "$SCRIPT_DIR"

for i in $( ls hlds-* ); do echo "[$i]"; cat "$i" | grep -iE '\bexe\b|version' | sed 's/[^0-9]//g'; echo; done
for i in $( ls srcds-* ); do echo "[$i]"; cat "$i" | grep -iE '\bexe\b|version' | sed 's/[^0-9]//g'; echo; done
for i in $( ls hlds-* srcds-* | grep -v srcds-cs2 ); do
echo "[$i]"
cat "$i" | grep -iE '\bexe\b|version'
echo
cat "$i" | grep -iE '\bexe\b|version' | sed 's/[^0-9]//g'
echo
done

0 comments on commit b6601b2

Please sign in to comment.