Skip to content

Commit c6603de

Browse files
committed
fix: Linter and Test
1 parent 9946a6d commit c6603de

File tree

4 files changed

+15
-19
lines changed

4 files changed

+15
-19
lines changed

.github/workflows/lint.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,15 @@ jobs:
1414
lint:
1515
name: Lint
1616
runs-on: ubuntu-latest
17-
env:
18-
deno-version: lts
1917

2018
steps:
21-
- name: 'Setup Repository (${{github.event.repository.name}})'
19+
- name: 'Setup Repository
2220
uses: actions/checkout@v4
2321
2422
- name: 'Setup Deno'
25-
uses: denoland/setup-deno@v2.0.3
23+
uses: denoland/setup-deno@v2
2624
with:
27-
deno-version: ${{env.deno-version}}
25+
deno-version: 'v2.x'
2826

2927
- name: 'Run Linter'
3028
run: deno task lint

.github/workflows/test.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Run Unit Tests
22

33
on:
44
push:
5-
branches: ["main"]
5+
branches: ['main']
66

77
workflow_dispatch:
88

@@ -14,22 +14,20 @@ jobs:
1414
test:
1515
name: Unit Test
1616
runs-on: ubuntu-latest
17-
env:
18-
deno-version: lts
1917

2018
steps:
21-
- name: 'Setup Repository (${{github.event.repository.name}})'
19+
- name: Setup Repository
2220
uses: actions/checkout@v4
2321

24-
- name: 'Setup Deno'
25-
uses: denoland/setup-deno@v2.0.3
22+
- name: Setup Deno
23+
uses: denoland/setup-deno@v2
2624
with:
27-
deno-version: ${{env.deno-version}}
28-
29-
- name: 'Run Tests'
25+
deno-version: 'v2.x'
26+
27+
- name: Run Tests
3028
run: deno task test
3129

32-
- name: 'Generate jUnit Report'
30+
- name: Generate jUnit Report
3331
uses: mikepenz/[email protected]
3432
with:
35-
report_paths: 'report.xml'
33+
report_paths: 'reports/report.xml'

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# UNIX Socket
22

3-
[![Run Linter](https://github.com/DenoPlayground/Template/actions/workflows/lint.yml/badge.svg)](https://github.com/DenoPlayground/Template/actions/workflows/lint.yml)
4-
[![Run Unit Tests](https://github.com/DenoPlayground/Template/actions/workflows/test.yml/badge.svg)](https://github.com/DenoPlayground/Template/actions/workflows/test.yml)
3+
[![Run Linter](https://github.com/TypeScriptPlayground/socket/actions/workflows/lint.yml/badge.svg)](https://github.com/TypeScriptPlayground/socket/actions/workflows/lint.yml)
4+
[![Run Unit Tests](https://github.com/TypeScriptPlayground/socket/actions/workflows/test.yml/badge.svg)](https://github.com/TypeScriptPlayground/socket/actions/workflows/test.yml)
55

66
Use this library to open and connect to UNIX sockets, send requests and get responses similar to a fetch request. This
77
library supports basic response chunk decoding.

deno.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@typescriptplayground/socket",
3-
"version": "0.1.1",
3+
"version": "0.1.2",
44
"license": "./LICENSE",
55
"exports": {
66
".": "./src/index.ts"

0 commit comments

Comments
 (0)