mirror of
https://github.com/LukeHagar/slinky.git
synced 2025-12-06 04:21:20 +00:00
moved test files, adjusted publishing and repo structure
This commit is contained in:
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@@ -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()
|
||||
|
||||
15
.github/workflows/publish.yml
vendored
15
.github/workflows/publish.yml
vendored
@@ -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 });
|
||||
}
|
||||
|
||||
|
||||
|
||||
4
Makefile
4
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
|
||||
|
||||
0
test files/test3.js → testdata/test3.js
vendored
0
test files/test3.js → testdata/test3.js
vendored
Reference in New Issue
Block a user