Skip to content

Commit

Permalink
Merge pull request #439 from fastrodev/store
Browse files Browse the repository at this point in the history
Store
  • Loading branch information
ynwd authored Sep 16, 2024
2 parents 159336e + 7048dac commit 538d819
Show file tree
Hide file tree
Showing 5 changed files with 105 additions and 140 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
deno-version: vx.x.x

- name: Run tests
run: deno task test
run: GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} deno task test

- name: Generate report
run: deno task coverage
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- run: deno lint --unstable-kv examples

- name: Run tests
run: deno task test
run: GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} deno task test

- name: Generate report
run: deno task coverage
Expand Down
3 changes: 1 addition & 2 deletions core/map/map.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,8 @@ Deno.test("Store: size method returns correct count", () => {

const d = new Date();
const time = d.getTime();
const token = Deno.env.get("GITHUB_TOKEN") || Deno.env.get("GH_TOKEN");
const token = Deno.env.get("GITHUB_TOKEN");
Deno.test("Store: save it to github", async () => {
if (!token) return;
const expiringMap = new Store<string, number>({
owner: "fastrodev",
repo: "fastro",
Expand Down
Loading

0 comments on commit 538d819

Please sign in to comment.