Skip to content
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
121 changes: 121 additions & 0 deletions .github/workflows/language-specific.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
name: Language-specific validation
on:
pull_request:
branches: ["main"]
push:
branches: ["main"]

jobs:
dotnet:
name: ".Net"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: "9.0.x"
cache: true
cache-dependency-path: "**/package-lock.json"
- run:
curl -s
https://raw.githubusercontent.com/dotnet-script/dotnet-script/master/install/install.sh
| sudo bash
- run: |
cd examples/dotnet
dotnet restore
- run: |
cd examples/dotnet
dotnet run # runs GettingStarted.cs
dotnet script ListBuckets.csx
dotnet script PutObject.csx
env:
AWS_ACCESS_KEY_ID: ${{ secrets.LANG_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.LANG_AWS_SECRET_ACCESS_KEY }}
AWS_REGION: auto
go:
name: Go
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
cache-dependency-path: |
examples/go/go.sum
- name: Deps
run: |
cd examples/go
go mod download
- name: Examples
run: |
cd examples/go
go run ./cmd/getting-started tigris-example
go run ./cmd/conditional-operations tigris-example
go run ./cmd/metadata-querying tigris-example
go run ./cmd/object-regions tigris-example
go run ./cmd/presigned-urls tigris-example
env:
AWS_ACCESS_KEY_ID: ${{ secrets.LANG_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.LANG_AWS_SECRET_ACCESS_KEY }}
AWS_REGION: auto
javascript:
name: "JavaScript"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "latest"
- name: Deps
run: |
cd examples/js
npm ci --include=dev
- name: Examples
run: |
cd examples/js
node getting-started.js
node presigned-urls.js
env:
AWS_ACCESS_KEY_ID: ${{ secrets.LANG_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.LANG_AWS_SECRET_ACCESS_KEY }}
AWS_REGION: auto
AWS_ENDPOINT_URL_S3: https://fly.storage.tigris.dev
python:
name: "Python"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: pip
- run: |
cd examples/python
pip install -r requirements.txt
- run: |
cd examples/python
python getting-started.py
python hardcode-credentials.py
python object-metadata.py
python object-regions.py
env:
AWS_ACCESS_KEY_ID: ${{ secrets.LANG_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.LANG_AWS_SECRET_ACCESS_KEY }}
AWS_REGION: auto
ruby:
name: "Ruby"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.4"
- run: |
cd examples/ruby
bundle install
- run: |
cd examples/ruby
ruby getting_started.rb
env:
AWS_ACCESS_KEY_ID: ${{ secrets.LANG_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.LANG_AWS_SECRET_ACCESS_KEY }}
AWS_REGION: auto
1 change: 1 addition & 0 deletions examples/dotnet/dotnet.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
</PropertyGroup>

<ItemGroup>
Expand Down
48 changes: 48 additions & 0 deletions examples/dotnet/packages.lock.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"version": 1,
"dependencies": {
"net9.0": {
"AWSSDK.S3": {
"type": "Direct",
"requested": "[3.7.414.1, )",
"resolved": "3.7.414.1",
"contentHash": "MJMLuPxbf5CBK8hcMxW9vC9jgzCQnhdND9g2MfYN308Vagf0XPej39G/W+ffqC5/eYmAUEv9Wj4P5LkqNPBErg==",
"dependencies": {
"AWSSDK.Core": "[3.7.401.11, 4.0.0)"
}
},
"AWSSDK.SecurityToken": {
"type": "Direct",
"requested": "[3.7.401.40, )",
"resolved": "3.7.401.40",
"contentHash": "5sPVE9eWiwFKqCWGz6wqVdhf7FDsyN570nhFfMhhPSvQ1C/r8PlSJIFoVzMtYKfeTf/4pR3YC4w9IRi8+tAJzA==",
"dependencies": {
"AWSSDK.Core": "[3.7.401.11, 4.0.0)"
}
},
"AWSSDK.SSO": {
"type": "Direct",
"requested": "[3.7.400.91, )",
"resolved": "3.7.400.91",
"contentHash": "G7Zyy4C9aDVmqUgi12h00g3vexOgRyKNPeLb7VO8+sloz3zdiEnDEWsa98bvCfnODCDJbXjfD/XcQIshTZQ7gg==",
"dependencies": {
"AWSSDK.Core": "[3.7.401.11, 4.0.0)"
}
},
"AWSSDK.SSOOIDC": {
"type": "Direct",
"requested": "[3.7.400.92, )",
"resolved": "3.7.400.92",
"contentHash": "GWyHDjnvzC3n63N+clJ37Z5VCYw60u1wenBPCVGsrxBD4CZE0+rO/nhHCDYJw4vyeAM3cqBKjZc4LwsV07hFpQ==",
"dependencies": {
"AWSSDK.Core": "[3.7.401.11, 4.0.0)"
}
},
"AWSSDK.Core": {
"type": "Transitive",
"resolved": "3.7.401.11",
"contentHash": "tZ8dXsHj/6JaheljHB/2+AVXUwfq5Wij0h9odQclABdtM78CfdKs0f8xTQ6fS3UttSVgc5bmKTqNvEaocNOLeg=="
}
}
}
}
8 changes: 8 additions & 0 deletions examples/python/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
-i https://pypi.org/simple
boto3==1.36.12; python_version >= '3.8'
botocore==1.36.12; python_version >= '3.8'
jmespath==1.0.1; python_version >= '3.7'
python-dateutil==2.9.0.post0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2'
s3transfer==0.11.2; python_version >= '3.8'
six==1.17.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2'
urllib3==2.3.0; python_version >= '3.9'