Skip to content

Commit

Permalink
Update gem release flow to use ruby 3 (#47)
Browse files Browse the repository at this point in the history
Co-authored-by: Cian Butler <[email protected]>
  • Loading branch information
Cian Butler and butlerx authored Sep 5, 2024
1 parent b9c6745 commit c7c3d21
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 17 deletions.
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: bundler
directory: '/'
schedule:
interval: weekly
# Github Actions
- package-ecosystem: github-actions
directory: '/'
schedule:
interval: weekly
3 changes: 1 addition & 2 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ jobs:
restore-keys: |
${{ runner.os }}-rubocop-
- name: Install gems
run: |
bundle install --jobs 4 --retry 3
run: bundle install --jobs 4 --retry 3
- name: Run RuboCop
run: bundle exec rubocop --parallel --only Layout
19 changes: 6 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,26 @@
name: Release

on:
push:
branches:
- "master"

- master
- main
jobs:
run-tests:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
token: ${{ secrets.GH_TOKEN }}

- name: Get tags
run: git fetch --tags origin

- name: Install Node Dependencies
run: |
npm install
run: npm install
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7

ruby-version: 3.0
- name: Create Release Pull Request
id: changesets
uses: changesets/action@v1
Expand All @@ -36,7 +30,6 @@ jobs:
version: npm run version
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

- name: Create new release
if: steps.changesets.outputs.hasChangesets == 'false'
run: |
Expand All @@ -62,4 +55,4 @@ jobs:
echo "No tag attached to HEAD. No new release needed."
fi
env:
RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}}
RUBYGEMS_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}
4 changes: 2 additions & 2 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
name: evervault-unit-tests
on: [push]

jobs:
test:
strategy:
Expand All @@ -9,7 +8,8 @@ jobs:
os: [ubuntu]
ruby: [3.0, 3.1, 3.2]
runs-on: ${{ matrix.os }}-latest
continue-on-error: ${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'debug' }}
continue-on-error:
${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'debug' }}
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
Expand Down

0 comments on commit c7c3d21

Please sign in to comment.