Skip to content

Commit

Permalink
Update GH actions versions (#439)
Browse files Browse the repository at this point in the history
* chore: update actions versions

* chore: fix lint issues

* chore: fix version for command-output action

* fix: update decoders parameters use

* chore: fix quotes formatting

* chore: update docker deno image version
  • Loading branch information
bombillazo authored Feb 2, 2024
1 parent 128394a commit 4fffc5d
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
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

3 comments on commit 4fffc5d

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No typecheck tests failure

This error was most likely caused by incorrect type stripping from the SWC crate

Please report the following failure to https://github.com/denoland/deno with a reproduction of the current commit

Failure log

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No typecheck tests failure

This error was most likely caused by incorrect type stripping from the SWC crate

Please report the following failure to https://github.com/denoland/deno with a reproduction of the current commit

Failure log

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No typecheck tests failure

This error was most likely caused by incorrect type stripping from the SWC crate

Please report the following failure to https://github.com/denoland/deno with a reproduction of the current commit

Failure log

Please sign in to comment.