Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmazza committed Mar 6, 2024
0 parents commit fb0bdfc
Show file tree
Hide file tree
Showing 283 changed files with 44,916 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.github/workflows @tremendous-rewards/platform
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"

- package-ecosystem: "bundler"
directory: "/"
schedule:
interval: "weekly"
20 changes: 20 additions & 0 deletions .github/workflows/check-updates.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Check if the Open API has changed
on:
schedule:
- cron: '0 */6 * * *'

jobs:
check-update:
if: github.repository == 'tremendous-rewards/tremendous-node'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- id: check-update
run: ./bin/check-updates

- id: create-issue
if: ${{ steps.check-update.outputs.changed == 'true' }}
uses: JasonEtco/create-an-issue@1b14a70e4d8dc185e5cc76d3bec9eab20257b2c5
with:
update_existing: false
filename: .github/needs-update-template.md
20 changes: 20 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Publish package to Rubygems
on:
release:
types: [published]

permissions:
id-token: write

jobs:
publish:
if: github.repository == 'tremendous-rewards/tremendous-ruby'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3
bundler-cache: true
- uses: rubygems/release-gem@v1
34 changes: 34 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Run tests

on:
push:
branches-ignore:
- 'dependabot/**'
tags-ignore:
- 'v*'
pull_request_target:
branches:
- 'main'

jobs:
test:
if: github.repository == 'tremendous-rewards/tremendous-ruby'
runs-on: ubuntu-latest

strategy:
matrix:
ruby-version: ['3.1', '3.2', '3.3']

steps:
- uses: actions/checkout@v4
- name: Use Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- run: rake
env:
SANDBOX_API_TOKEN: ${{ secrets.SANDBOX_API_TOKEN }}
TEST_CAMPAIGN_ID: ${{ secrets.TEST_CAMPAIGN_ID }}
TEST_PRODUCT_ID: ${{ secrets.TEST_PRODUCT_ID }}
TEST_RECIPIENT_EMAIL: ${{ secrets.TEST_RECIPIENT_EMAIL }}
39 changes: 39 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Generated by: https://openapi-generator.tech
#

*.gem
*.rbc
/.config
/coverage/
/InstalledFiles
/pkg/
/spec/reports/
/spec/examples.txt
/test/tmp/
/test/version_tmp/
/tmp/

## Specific to RubyMotion:
.dat*
.repl_history
build/

## Documentation cache and generated files:
/.yardoc/
/_yardoc/
/doc/
/rdoc/

## Environment normalization:
/.bundle/
/vendor/bundle
/lib/bundler/man/

# for a library or gem, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# Gemfile.lock
# .ruby-version
# .ruby-gemset

# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
.rvmrc
31 changes: 31 additions & 0 deletions .openapi-generator-ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# OpenAPI Generator Ignore
# Generated by openapi-generator https://github.com/openapitools/openapi-generator

# Use this file to prevent files from being overwritten by the generator.
# The patterns follow closely to .gitignore or .dockerignore.

# As an example, the C# client generator defines ApiClient.cs.
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
#ApiClient.cs

# You can match any string of characters against a directory, file or extension with a single asterisk (*):
#foo/*/qux
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux

# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
#foo/**/qux
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux

# You can also negate patterns with an exclamation (!).
# For example, you can ignore all files in a docs folder with the file extension .md:
#docs/*.md
# Then explicitly reverse the ignore rule for a single file:
#!docs/README.md
lib/tremendous/version.rb
.gitignore
Gemfile
Rakefile
tremendous.gemspec
README.md
.rspec
.rubocop.yml
Loading

0 comments on commit fb0bdfc

Please sign in to comment.