From a47630c7ef2e2ef3ee2eae8ea68ef3b54a9b917b Mon Sep 17 00:00:00 2001 From: Luke Hagar Date: Thu, 11 Sep 2025 16:17:47 +0000 Subject: [PATCH] moved test files, adjusted publishing and repo structure --- .github/workflows/ci.yml | 2 +- .github/workflows/publish.yml | 15 +++++++++++++++ Makefile | 4 ++-- .../test nesting/test more nesting/test1.md | 0 {test files => testdata}/test nesting/test2.txt | 0 {test files => testdata}/test10.log | 0 {test files => testdata}/test11.go | 0 {test files => testdata}/test12.php | 0 {test files => testdata}/test13.ps1 | 0 {test files => testdata}/test14.py | 0 {test files => testdata}/test15.java | 0 {test files => testdata}/test16.ts | 0 {test files => testdata}/test17.rb | 0 {test files => testdata}/test3.js | 0 {test files => testdata}/test4.xml | 0 {test files => testdata}/test5.html | 0 {test files => testdata}/test6.json | 0 {test files => testdata}/test7.yaml | 0 {test files => testdata}/test8.csv | 0 {test files => testdata}/test9.ini | 0 20 files changed, 18 insertions(+), 3 deletions(-) rename {test files => testdata}/test nesting/test more nesting/test1.md (100%) rename {test files => testdata}/test nesting/test2.txt (100%) rename {test files => testdata}/test10.log (100%) rename {test files => testdata}/test11.go (100%) rename {test files => testdata}/test12.php (100%) rename {test files => testdata}/test13.ps1 (100%) rename {test files => testdata}/test14.py (100%) rename {test files => testdata}/test15.java (100%) rename {test files => testdata}/test16.ts (100%) rename {test files => testdata}/test17.rb (100%) rename {test files => testdata}/test3.js (100%) rename {test files => testdata}/test4.xml (100%) rename {test files => testdata}/test5.html (100%) rename {test files => testdata}/test6.json (100%) rename {test files => testdata}/test7.yaml (100%) rename {test files => testdata}/test8.csv (100%) rename {test files => testdata}/test9.ini (100%) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f688090..229cd3f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -52,7 +52,7 @@ jobs: run: | set -e docker run --rm -v "$PWD:/repo" -w /repo -e GITHUB_STEP_SUMMARY="/tmp/summary.md" slinky-action sh -lc \ - 'INPUT_PATH=. INPUT_PATTERNS="test files/**" INPUT_CONCURRENCY=8 INPUT_TIMEOUT=5 INPUT_JSON_OUT=results.json INPUT_MD_OUT=results.md INPUT_FAIL_ON_FAILURES=true INPUT_COMMENT_PR=false INPUT_STEP_SUMMARY=true /entrypoint.sh' + 'INPUT_PATH=. INPUT_PATTERNS="**/*" INPUT_CONCURRENCY=8 INPUT_TIMEOUT=5 INPUT_JSON_OUT=results.json INPUT_MD_OUT=results.md INPUT_FAIL_ON_FAILURES=true INPUT_COMMENT_PR=false INPUT_STEP_SUMMARY=true /entrypoint.sh' - name: Upload results.json if: always() diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 0d0dbac..8a30f2f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -71,4 +71,19 @@ jobs: await github.rest.git.createRef({ owner, repo, ref: `refs/${ref}`, sha }); } + - name: Update floating latest tag to latest + uses: actions/github-script@v7 + with: + script: | + const owner = context.repo.owner; + const repo = context.repo.repo; + const sha = context.sha; + const ref = 'tags/latest'; + try { + await github.rest.git.getRef({ owner, repo, ref }); + await github.rest.git.updateRef({ owner, repo, ref, sha, force: true }); + } catch (e) { + await github.rest.git.createRef({ owner, repo, ref: `refs/${ref}`, sha }); + } + diff --git a/Makefile b/Makefile index c084b7d..a3fa34e 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,7 @@ test: # Convenience: run the headless check against local test files check: build - ./$(BIN) check . --glob "test files/**" --json-out results.json --fail-on-failures true + ./$(BIN) check . --patterns "**/*" --json-out results.json --fail-on-failures true # Build the Docker-based GitHub Action locally action-image: @@ -25,7 +25,7 @@ action-image: # Run the Action container against the current repo action-run: action-image - docker run --rm -v "$(PWD):/repo" -w /repo -e GITHUB_STEP_SUMMARY="/tmp/summary.md" slinky-action sh -lc 'INPUT_PATH=. INPUT_PATTERNS="test files/**" INPUT_CONCURRENCY=8 INPUT_TIMEOUT=5 INPUT_JSON_OUT=results.json INPUT_MD_OUT=results.md INPUT_FAIL_ON_FAILURES=true INPUT_COMMENT_PR=false INPUT_STEP_SUMMARY=true /entrypoint.sh' + docker run --rm -v "$(PWD):/repo" -w /repo -e GITHUB_STEP_SUMMARY="/tmp/summary.md" slinky-action sh -lc 'INPUT_PATH=. INPUT_PATTERNS="**/*" INPUT_CONCURRENCY=8 INPUT_TIMEOUT=5 INPUT_JSON_OUT=results.json INPUT_MD_OUT=results.md INPUT_FAIL_ON_FAILURES=true INPUT_COMMENT_PR=false INPUT_STEP_SUMMARY=true /entrypoint.sh' clean: rm -rf $(BIN_DIR) results.json results.md diff --git a/test files/test nesting/test more nesting/test1.md b/testdata/test nesting/test more nesting/test1.md similarity index 100% rename from test files/test nesting/test more nesting/test1.md rename to testdata/test nesting/test more nesting/test1.md diff --git a/test files/test nesting/test2.txt b/testdata/test nesting/test2.txt similarity index 100% rename from test files/test nesting/test2.txt rename to testdata/test nesting/test2.txt diff --git a/test files/test10.log b/testdata/test10.log similarity index 100% rename from test files/test10.log rename to testdata/test10.log diff --git a/test files/test11.go b/testdata/test11.go similarity index 100% rename from test files/test11.go rename to testdata/test11.go diff --git a/test files/test12.php b/testdata/test12.php similarity index 100% rename from test files/test12.php rename to testdata/test12.php diff --git a/test files/test13.ps1 b/testdata/test13.ps1 similarity index 100% rename from test files/test13.ps1 rename to testdata/test13.ps1 diff --git a/test files/test14.py b/testdata/test14.py similarity index 100% rename from test files/test14.py rename to testdata/test14.py diff --git a/test files/test15.java b/testdata/test15.java similarity index 100% rename from test files/test15.java rename to testdata/test15.java diff --git a/test files/test16.ts b/testdata/test16.ts similarity index 100% rename from test files/test16.ts rename to testdata/test16.ts diff --git a/test files/test17.rb b/testdata/test17.rb similarity index 100% rename from test files/test17.rb rename to testdata/test17.rb diff --git a/test files/test3.js b/testdata/test3.js similarity index 100% rename from test files/test3.js rename to testdata/test3.js diff --git a/test files/test4.xml b/testdata/test4.xml similarity index 100% rename from test files/test4.xml rename to testdata/test4.xml diff --git a/test files/test5.html b/testdata/test5.html similarity index 100% rename from test files/test5.html rename to testdata/test5.html diff --git a/test files/test6.json b/testdata/test6.json similarity index 100% rename from test files/test6.json rename to testdata/test6.json diff --git a/test files/test7.yaml b/testdata/test7.yaml similarity index 100% rename from test files/test7.yaml rename to testdata/test7.yaml diff --git a/test files/test8.csv b/testdata/test8.csv similarity index 100% rename from test files/test8.csv rename to testdata/test8.csv diff --git a/test files/test9.ini b/testdata/test9.ini similarity index 100% rename from test files/test9.ini rename to testdata/test9.ini