Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update GH actions versions #439

Merged
merged 6 commits into from
Feb 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Setup Deno
uses: denoland/setup-deno@v1
with:
deno-version: 1.26.2
deno-version: v1.x

- name: Format
run: deno fmt --check
Expand All @@ -37,7 +37,7 @@ jobs:

- name: Run tests without typechecking
id: no_typecheck
uses: mathiasvr/command-output@v1
uses: mathiasvr/command-output@v2.0.0
with:
run: docker-compose run no_check_tests
continue-on-error: true
Expand All @@ -56,7 +56,7 @@ jobs:
steps:
- name: Set no-typecheck fail comment
if: ${{ needs.test.outputs.no_typecheck_status != 'success' && github.event_name == 'push' }}
uses: peter-evans/commit-comment@v1
uses: peter-evans/commit-comment@v3
with:
body: |
# No typecheck tests failure
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM denoland/deno:alpine-1.26.2
FROM denoland/deno:alpine-1.40.3
WORKDIR /app

# Install wait utility
USER root
ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.8.0/wait /wait
ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.12.1/wait /wait
RUN chmod +x /wait

USER deno
Expand Down
6 changes: 3 additions & 3 deletions query/decoders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const HEX = 16;
const HEX_PREFIX_REGEX = /^\\x/;
const TIMEZONE_RE = /([Z+-])(\d{2})?:?(\d{2})?:?(\d{2})?/;

export function decodeBigint(value: string): BigInt {
export function decodeBigint(value: string): bigint {
return BigInt(value);
}

Expand All @@ -43,7 +43,7 @@ export function decodeBox(value: string): Box {
const [a, b] = value.match(/\(.*?\)/g) || [];

return {
a: decodePoint(a),
a: decodePoint(a || ""),
b: decodePoint(b),
};
}
Expand Down Expand Up @@ -224,7 +224,7 @@ export function decodeLineSegment(value: string): LineSegment {
.match(/\(.*?\)/g) || [];

return {
a: decodePoint(a),
a: decodePoint(a || ""),
b: decodePoint(b),
};
}
Expand Down
2 changes: 1 addition & 1 deletion query/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export type Polygon = Point[];
/**
* https://www.postgresql.org/docs/14/datatype-oid.html
*/
export type TID = [BigInt, BigInt];
export type TID = [bigint, bigint];

/**
* Additional to containing normal dates, they can contain 'Infinity'
Expand Down
2 changes: 1 addition & 1 deletion tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ need to modify the configuration.
From within the project directory, run:

```
deno test --allow-read --allow-net
deno test --allow-read --allow-net --allow-env
```

## Docker Configuration
Expand Down
2 changes: 1 addition & 1 deletion tests/config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ClientConfiguration } from "../connection/connection_params.ts";
import config_file1 from "./config.json" assert { type: "json" };
import config_file1 from "./config.json" with { type: "json" };

type TcpConfiguration = Omit<ClientConfiguration, "connection"> & {
host_type: "tcp";
Expand Down
Loading