Skip to content

Commit

Permalink
fix: test jsr setup
Browse files Browse the repository at this point in the history
  • Loading branch information
frytg committed Dec 18, 2024
1 parent 8c3fb3c commit 99e3c9f
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ on:
permissions:
contents: read

# env:
# JSR_DEPENDENCIES: "@cross/test @std/assert @std/fmt @frytg/logger @frytg/check-required-env"
env:
JSR_DEPENDENCIES: "@cross/test @std/assert @std/fmt @frytg/logger @frytg/check-required-env"
# NPM_DEPENDENCIES: "luxon minio sinon"

jobs:
Expand Down Expand Up @@ -94,8 +94,8 @@ jobs:
- name: Bun version
run: bun --version

#- name: Install JSR dependencies
# run: bunx jsr add ${{ env.JSR_DEPENDENCIES }}
- name: Install JSR dependencies
run: bunx jsr add ${{ env.JSR_DEPENDENCIES }}

#- name: Install NPM dependencies
# run: bun add ${{ env.NPM_DEPENDENCIES }}
Expand Down Expand Up @@ -140,8 +140,8 @@ jobs:
- name: Node version
run: node --version

#- name: Install JSR dependencies
# run: npx jsr add ${{ env.JSR_DEPENDENCIES }}
- name: Install JSR dependencies
run: npx jsr add ${{ env.JSR_DEPENDENCIES }}

#- name: Install NPM dependencies
# run: npm install ${{ env.NPM_DEPENDENCIES }}
Expand Down
29 changes: 29 additions & 0 deletions storage-s3/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Storage (S3) wrapper

[![JSR @frytg/storage-s3](https://jsr.io/badges/@frytg/storage-s3)](https://jsr.io/@frytg/storage-s3)
[![ci](https://github.com/frytg/utility/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/frytg/utility/actions/workflows/test.yml)

This is a simple opinionated wrapper around the S3 library [MinIO](https://min.io/) to access and manipulate S3 objects.

## Usage

```ts
import { getObject } from '@frytg/storage-s3';

const object = await getObject('path/to/object.json', { parseJson: true });
```

## Methods

- [getObject](https://jsr.io/@frytg/storage-s3/doc/~/getObject)
- [uploadObject](https://jsr.io/@frytg/storage-s3/doc/~/uploadObject)
- [objectExists](https://jsr.io/@frytg/storage-s3/doc/~/objectExists)
- [listObjects](https://jsr.io/@frytg/storage-s3/doc/~/listObjects)

## Author

Created by [@frytg](https://github.com/frytg) / [frytg.digital](https://www.frytg.digital)

## License

[Unlicense](https://github.com/frytg/utility/blob/main/LICENSE) - also see [unlicense.org](https://unlicense.org)

0 comments on commit 99e3c9f

Please sign in to comment.