Skip to content

Commit

Permalink
chore: update to Deno 1.4.0 and std 0.69.0 (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacasonato committed Sep 13, 2020
1 parent 99b56cd commit 508ea8b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ on:

jobs:
test:
name: test-${{ matrix.deno-version }}-${{ matrix.unstable && 'unstable' || 'stable' }}
name: build-${{ matrix.deno-version == 'nightly' && 'nightly' || 'release' }}-${{ matrix.unstable && 'unstable' || 'stable' }}-${{ matrix.no-check && 'nocheck' || 'tsc' }}
runs-on: ubuntu-latest
strategy:
matrix:
deno-version: [v1.3.3, nightly]
deno-version: [v1.4.0, nightly]
unstable: [false, true]
no-check: [false, true]
env:
AWS_ACCESS_KEY_ID: AKIAIOSFODNN7EXAMPLE
AWS_SECRET_ACCESS_KEY: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
Expand All @@ -37,4 +38,4 @@ jobs:
aws --endpoint-url "http://localhost:9000" s3 mb s3://test
- name: Test
run: deno test --allow-net --allow-env ${{ matrix.unstable && '--unstable' || '' }}
run: deno test --allow-net --allow-env${{ matrix.unstable && ' --unstable' || '' }}${{ matrix.no-check && ' --no-check' || '' }}
4 changes: 2 additions & 2 deletions deps.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export { AWSSignerV4 } from "https://deno.land/x/aws_sign_v4@0.1.0/mod.ts";
import { createHash } from "https://deno.land/std@0.68.0/hash/mod.ts";
export { AWSSignerV4 } from "https://deno.land/x/aws_sign_v4@0.1.1/mod.ts";
import { createHash } from "https://deno.land/std@0.69.0/hash/mod.ts";
export function sha256Hex(data: string | Uint8Array): string {
const hasher = createHash("sha256");
hasher.update(data);
Expand Down
2 changes: 1 addition & 1 deletion src/bucket.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { AWSSignerV4, sha256Hex } from "../deps.ts";
import { S3Config } from "./client.ts";
import type { S3Config } from "./client.ts";
import type {
GetObjectOptions,
PutObjectOptions,
Expand Down
2 changes: 1 addition & 1 deletion test_deps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ export {
assert,
assertEquals,
assertThrowsAsync,
} from "https://deno.land/std@0.68.0/testing/asserts.ts";
} from "https://deno.land/std@0.69.0/testing/asserts.ts";

0 comments on commit 508ea8b

Please sign in to comment.