Skip to content

Commit

Permalink
Merge pull request #144 from InjectiveLabs/feat/low_level_API_components
Browse files Browse the repository at this point in the history
feat/low level API components
  • Loading branch information
aarmoa authored Jan 8, 2024
2 parents 1bc9edd + a6516ab commit bb66b82
Show file tree
Hide file tree
Showing 24 changed files with 6,037 additions and 3,259 deletions.
40 changes: 21 additions & 19 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,32 +11,34 @@ jobs:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
ruby-version: [2.6, 2.7, 3.0]
ruby-version: [2.7, 3.2] # Removed version 3.3 for now because it started to fail due to dependencies issue

steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}

- uses: actions/cache@v2
with:
path: vendor/bundle
key: gems-${{ runner.os }}-${{ matrix.ruby-version }}-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
gems-${{ runner.os }}-${{ matrix.ruby-version }}-
gems-${{ runner.os }}-
# necessary to get ruby 2.3 to work nicely with bundler vendor/bundle cache
# can remove once ruby 2.3 is no longer supported
# - run: gem update --system

- run: bundle config set deployment 'true'
- name: bundle install
run: |
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
bundler-cache: true # runs 'bundle install' and caches installed gems automatically

# Commenting out the use of cache@v2 because we start using the `bundler-cache` option from setup-ruby@v1
# - uses: actions/cache@v2
# with:
# path: vendor/bundle
# key: gems-${{ runner.os }}-${{ matrix.ruby-version }}-${{ hashFiles('**/Gemfile.lock') }}
# restore-keys: |
# gems-${{ runner.os }}-${{ matrix.ruby-version }}-
# gems-${{ runner.os }}-

# Commenting out the configuration of `deployment` option because setup-ruby@v1 used this option by default if a Gemfile.lock is present
# - run: bundle config set deployment 'true'

# Commenting out the bundle install step because it is executed by setup-ruby@v1
# - name: bundle install
# run: |
# bundle config path vendor/bundle
# bundle install --jobs 4 --retry 3

- run: bundle exec middleman build
17 changes: 2 additions & 15 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,15 @@ jobs:
deploy:
runs-on: ubuntu-latest
env:
ruby-version: 2.6
ruby-version: 2.7

steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ env.ruby-version }}

- uses: actions/cache@v2
with:
path: vendor/bundle
key: gems-${{ runner.os }}-${{ env.ruby-version }}-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
gems-${{ runner.os }}-${{ env.ruby-version }}-
gems-${{ runner.os }}-
- run: bundle config set deployment 'true'
- name: bundle install
run: |
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
bundler-cache: true # runs 'bundle install' and caches installed gems automatically

- run: bundle exec middleman build

Expand Down
17 changes: 2 additions & 15 deletions .github/workflows/dev_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,15 @@ jobs:
deploy:
runs-on: ubuntu-latest
env:
ruby-version: 2.6
ruby-version: 2.7

steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ env.ruby-version }}

- uses: actions/cache@v2
with:
path: vendor/bundle
key: gems-${{ runner.os }}-${{ env.ruby-version }}-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
gems-${{ runner.os }}-${{ env.ruby-version }}-
gems-${{ runner.os }}-
- run: bundle config set deployment 'true'
- name: bundle install
run: |
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
bundler-cache: true # runs 'bundle install' and caches installed gems automatically

- run: bundle exec middleman build

Expand Down
Loading

0 comments on commit bb66b82

Please sign in to comment.