Skip to content

Commit 8ee55ca

Browse files
committed
Fix manual rule test workflow
1 parent 6eb2842 commit 8ee55ca

File tree

1 file changed

+18
-12
lines changed

1 file changed

+18
-12
lines changed

.github/workflows/manual-rule-test.yml

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,12 @@ jobs:
3535
uses: Bogdanp/[email protected]
3636
with:
3737
version: current
38-
local_catalogs: $GITHUB_WORKSPACE
38+
distribution: minimal
39+
dest: ${HOME}/racketdist
40+
sudo: never
3941

40-
- name: Ensure test corpus packages are installed
41-
run: raco pkg install --auto --no-setup scribble-doc scribble-html-lib scribble-lib scribble-test scribble-text-lib scribble
42+
- name: Ensure all test corpus packages are installed
43+
run: raco pkg install --auto --no-setup --installation --skip-installed scribble-doc scribble-html-lib scribble-lib scribble-test scribble-text-lib scribble
4244

4345
- name: Update test corpus packages to local dirs
4446
run: raco pkg update --link --no-setup scribble-8.18/scribble-doc scribble-8.18/scribble-html-lib scribble-8.18/scribble-lib scribble-8.18/scribble-test scribble-8.18/scribble-text-lib scribble-8.18/scribble
@@ -63,32 +65,36 @@ jobs:
6365

6466
- name: Run Resyntax
6567
id: run-resyntax
68+
# --package scribble-doc \
69+
# --package scribble-html-lib \
70+
# --package scribble-lib \
71+
# --package scribble-test \
72+
# --package scribble-text-lib \
73+
# --package scribble \
6674
run: |
6775
echo "SUMMARY_JSON=$(racket -l- resyntax/cli fix \
68-
--package scribble-doc \
69-
--package scribble-html-lib \
70-
--package scribble-lib \
71-
--package scribble-test \
72-
--package scribble-text-lib \
73-
--package scribble \
76+
--file scribble-8.18/scribble-lib/scribble/core.rkt \
7477
--refactoring-rule "${{ inputs.rule-name }}" \
7578
--max-pass-count 1 \
7679
--output-as-json \
7780
--create-multiple-commits)" >> "$GITHUB_OUTPUT"
81+
82+
- name: Log summary JSON
83+
run: echo '${{ steps.run-resyntax.outputs.SUMMARY_JSON }}'
7884

7985
- name: Push fixes to remote branch
80-
if: ${{ steps.run-resyntax.outputs.SUMMARY_JSON.fix_count > 0 }}
86+
if: ${{ fromJSON(steps.run-resyntax.outputs.SUMMARY_JSON).fix_count > 0 }}
8187
uses: actions/[email protected]
8288
with:
8389
github-token: ${{ steps.generate-token.outputs.token }}
8490
script: |
8591
await exec.exec(
8692
'git push --set-upstream origin autofix-${{ github.run_number }}-${{ github.run_attempt }}',
8793
[],
88-
{cwd: 'cloned-package'});
94+
{});
8995
9096
- name: Create pull request
91-
if: ${{ steps.run-resyntax.outputs.SUMMARY_JSON.fix_count > 0 }}
97+
if: ${{ fromJSON(steps.run-resyntax.outputs.SUMMARY_JSON).fix_count > 0 }}
9298
uses: actions/[email protected]
9399
env:
94100
SUMMARY_JSON: ${{ steps.run-resyntax.outputs.SUMMARY_JSON }}

0 commit comments

Comments
 (0)