Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SuhEugene committed Oct 3, 2023
1 parent 715128f commit 2e32536
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 25 deletions.
38 changes: 19 additions & 19 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,22 +61,22 @@ jobs:
env:
TEST: CODE
run: test/run-test.sh
Maps:
runs-on: ubuntu-latest
needs: DreamChecker
strategy:
fail-fast: false
matrix:
map_path: [example, sierra, away_sites_testing]
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608
- name: Setup Cache
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84
with:
path: $HOME/BYOND-${BYOND_MAJOR}.${BYOND_MINOR}
key: ${{ runner.os }}-byond-${{ env.BYOND_MAJOR }}-${{ env.BYOND_MINOR }}
- name: Run Tests
env:
TEST: MAP
MAP_PATH: ${{ matrix.map_path }}
run: test/run-test.sh
# Maps:
# runs-on: ubuntu-latest
# needs: DreamChecker
# strategy:
# fail-fast: false
# matrix:
# map_path: [example, sierra, away_sites_testing]
# steps:
# - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608
# - name: Setup Cache
# uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84
# with:
# path: $HOME/BYOND-${BYOND_MAJOR}.${BYOND_MINOR}
# key: ${{ runner.os }}-byond-${{ env.BYOND_MAJOR }}-${{ env.BYOND_MINOR }}
# - name: Run Tests
# env:
# TEST: MAP
# MAP_PATH: ${{ matrix.map_path }}
# run: test/run-test.sh
6 changes: 3 additions & 3 deletions html/changelogs/example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# Your changelog will be merged with a master changelog. (New stuff added only, and only on the date entry for the day it was merged.)
# When it is, any changes listed below will disappear.
#
# Valid Prefixes:
# Valid Prefixes:
# bugfix
# wip (For works in progress)
# tweak
Expand All @@ -22,7 +22,7 @@
# admin
#################################

# Your name.
# Your name.
author: Unknown

# Optional: Remove this file after generating master changelog. Useful for PR changelogs that won't get used again.
Expand All @@ -33,6 +33,6 @@ delete-after: True
# SCREW THIS UP AND IT WON'T WORK.
# Also, all entries are changed into a single [] after a master changelog generation. Just remove the brackets when you add new entries.
# Please surround your changes in double quotes ("), as certain characters otherwise screws up compiling. The quotes will not show up in the changelog.
changes:
changes:
- rscadd: "Added a changelog editing system that should cause fewer conflicts and more accurate timestamps."
- rscdel: "Killed innocent kittens."
4 changes: 2 additions & 2 deletions test/check-paths.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ exactly 2 "/mob text paths" '"/mob'
exactly 12 "/obj text paths" '"/obj'
exactly 8 "/turf text paths" '"/turf'
exactly 141 "to_world uses" '\sto_world\('
exactly 65 "to_world_log uses" '\sto_world_log\('
exactly 66 "to_world_log uses" '\sto_world_log\('
exactly 0 "world<< uses" 'world<<|world[[:space:]]<<'
exactly 0 "world.log<< uses" 'world.log<<|world.log[[:space:]]<<'
exactly 149 "<< uses" '(?<!<)<<(?!<)' -P
exactly 148 "<< uses" '(?<!<)<<(?!<)' -P
exactly 0 "incorrect indentations" '^( {4,})' -P
exactly 36 "text2path uses" 'text2path'
exactly 3 "update_icon() override" '/update_icon\((.*)\)' -P
Expand Down
2 changes: 1 addition & 1 deletion test/run-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ function run_code_tests {
run_test_fail "no invalid spans" "grep -En \"<\s*span\s+class\s*=\s*('[^'>]+|[^'>]+')\s*>\" **/*.dm"
run_test "code quality checks" "test/check-paths.sh"
run_test "indentation check" "awk -f tools/indentation.awk **/*.dm"
run_test "check changelog example unchanged" "md5sum -c - <<< '683a3e0d21b90581ae6e4c95052d461e *html/changelogs/example.yml'"
run_test "check changelog example unchanged" "md5sum -c - <<< 'd79544262e83bedabee58552d9816c23 *html/changelogs/example.yml'"
run_test "check tags" "python3 tools/TagMatcher/tag-matcher.py ."
run_test "check color hex" "python3 tools/ColorHexChecker/color-hex-checker.py ."
run_test "check punctuation" "python3 tools/PunctuationChecker/punctuation-checker.py ."
Expand Down

0 comments on commit 2e32536

Please sign in to comment.