Skip to content

Commit 74aa739

Browse files
authored
fix: error when test mode ends for socket disconnect error (#144)
## Related GitHub Issues <!-- Link to any related GitHub issues that this pull request addresses or closes. --> ## Problem <!-- A clear description of the problem that this pull request is solving. --> levibostian/cathy#197 ## Solution <!-- Describe the approach you took to solve the problem and the changes made in this pull request. --> Install cathy 2.0.1 ## Testing <!-- Choose one of the below options for how you tested the code change. Include any specific setup or instructions for testing. --> - [ ] Added automated tests. - [X] Manually tested. If you check this box, provide instructions for others to test, too. I'll be creating a binary and testing it out in some projects of mine ## Notes for reviewers <!-- If there is any additional information you would like to share with the person reviewing this pull request, please provide it here. -->
1 parent 7bc8d7f commit 74aa739

7 files changed

Lines changed: 32 additions & 119 deletions

File tree

.circleci/config.yml

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,14 @@ jobs:
99
- checkout
1010
- gh/install
1111

12-
# Install asdf and the tools specified in .tool-versions
13-
- run: git clone https://github.com/brandoncc/circleci-asdf-installer.git ~/circleci-asdf-installer
14-
- run: ~/circleci-asdf-installer/bin/clone-asdf
15-
- restore_cache:
16-
keys:
17-
- tools-cache-{{ checksum ".tool-versions" }}
18-
- run: ~/circleci-asdf-installer/bin/install-asdf-plugins-and-versions
19-
- save_cache:
20-
key: tools-cache-{{ checksum ".tool-versions" }}
21-
paths:
22-
- "~/.asdf/plugins"
23-
- "~/.asdf/installs"
12+
- run:
13+
name: Install langs/tools
14+
command: |
15+
curl https://mise.run | sh
16+
echo 'export PATH="$HOME/.local/bin:$PATH"' >> "$BASH_ENV"
17+
echo 'eval "$(/home/circleci/.local/bin/mise activate bash)"' >> "$BASH_ENV"
18+
source "$BASH_ENV"
19+
mise install
2420
2521
# Install a specific version of the tool (recommended for teams)
2622
# - run: curl -fsSL https://github.com/levibostian/decaf/blob/HEAD/install?raw=true | bash "1.0.0"

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
1212

1313
- name: Set up Deno
14-
uses: asdf-vm/actions/install@b7bcd026f18772e44fe1026d729e1611cc435d47 # v4
14+
uses: jdx/mise-action@v3
1515

1616
- name: Run formatter and fail if not formatted
1717
run: |
@@ -27,7 +27,7 @@ jobs:
2727
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
2828

2929
- name: Set up Deno
30-
uses: asdf-vm/actions/install@b7bcd026f18772e44fe1026d729e1611cc435d47 # v4
30+
uses: jdx/mise-action@v3
3131

3232
- name: Run lint and fail if there are errors
3333
run: |

.github/workflows/lockfile-update.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
token: ${{ steps.generate-token.outputs.token }}
3030

3131
- name: Setup Deno
32-
uses: asdf-vm/actions/install@b7bcd026f18772e44fe1026d729e1611cc435d47 # v4
32+
uses: jdx/mise-action@v3
3333

3434
- name: Update Deno lock file
3535
run: deno install --frozen=false

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
1212

1313
- name: Set up Deno
14-
uses: asdf-vm/actions/install@b7bcd026f18772e44fe1026d729e1611cc435d47 # v4
14+
uses: jdx/mise-action@v3
1515

1616
- name: Install dependencies
1717
run: deno install --frozen

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ runs:
7070

7171
- name: Set up Deno
7272
if: ${{ inputs.compile_binary == 'true' }}
73-
uses: asdf-vm/actions/install@b7bcd026f18772e44fe1026d729e1611cc435d47 # v4
73+
uses: jdx/mise-action@v3
7474

7575
# compile binary and put into a location in PATH. the path matches what's in the ./install script.
7676
- name: Compile binary

deno.jsonc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"imports": {
33
"@david/service-store": "jsr:@david/service-store@^0.3.0",
44
"@david/dax": "jsr:@david/dax@^0.44.0",
5-
"@levibostian/cathy": "jsr:@levibostian/cathy@^2.0.0",
5+
"@levibostian/cathy": "jsr:@levibostian/cathy@^2.0.1",
66
"@std/cli": "jsr:@std/cli@^1.0.20",
77
"@std/path": "jsr:@std/path@^1.1.4",
88
"@std/semver": "jsr:@std/semver@^1.0.4",
@@ -24,6 +24,7 @@
2424
"test": "deno task test-deploy-scripts && deno task run-tests && deno task run-coverage",
2525
"test-update": "deno task test-only -- --update",
2626
"compile": "deno compile --output $OUTPUT_FILE_NAME --allow-env --allow-net=api.github.com --allow-run --allow-read --allow-write=/tmp,/var/folders,/home/runner/work/_temp --target $DENO_TARGET index.ts",
27+
"compile-all": "OUTPUT_FILE_NAME=dist/bin-x86_64-Linux DENO_TARGET=x86_64-unknown-linux-gnu deno task compile && OUTPUT_FILE_NAME=dist/bin-aarch64-Linux DENO_TARGET=aarch64-unknown-linux-gnu deno task compile && OUTPUT_FILE_NAME=dist/bin-x86_64-Darwin DENO_TARGET=x86_64-apple-darwin deno task compile && OUTPUT_FILE_NAME=dist/bin-aarch64-Darwin DENO_TARGET=aarch64-apple-darwin deno task compile",
2728
"format": "deno fmt",
2829
"lint": "deno fmt && deno lint --fix"
2930
},

deno.lock

Lines changed: 17 additions & 101 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)