Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CI and CD #23

Merged
merged 2 commits into from
Oct 15, 2022
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
26 changes: 26 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: CD

on:
push:
branches:
- "main"
jobs:
deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@8230315d06ad95c617244d2f265d237a1682d445
- name: Tag and Push Gem
id: tag-and-push-gem
uses: discourse/publish-rubygems-action@2d713f2092b4f02da811f4b591a10b6b56f0780e
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
GIT_EMAIL: ${{secrets.ALEX_GIT_EMAIL}}
GIT_NAME: ${{secrets.ALEX_GIT_NAME}}
RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}}
- name: Create GitHub Release
uses: softprops/action-gh-release@cd28b0f5ee8571b76cfdaa62a30d51d752317477
if: ${{ steps.tag-and-push-gem.outputs.new_version == 'true' }}
with:
tag_name: v${{steps.tag-and-push-gem.outputs.gem_version}}
generate_release_notes: true
29 changes: 13 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: CI

on: [push, pull_request]
on: [push]

jobs:
build:
rspec:
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -16,28 +16,25 @@ jobs:
- head
env:
BUNDLE_GEMFILE: Gemfile
name: "Tests: Ruby ${{ matrix.ruby }}"
name: "RSpec tests: Ruby ${{ matrix.ruby }}"
steps:
- uses: actions/checkout@5126516654c75f76bca1de45dd82a3006d8890f9
- uses: actions/checkout@8230315d06ad95c617244d2f265d237a1682d445
- name: Set up Ruby ${{ matrix.ruby }}
uses: ruby/setup-ruby@bd94d6a504586da892a5753afdd1480096ed30df
uses: ruby/setup-ruby@eae47962baca661befdfd24e4d6c34ade04858f7
with:
bundler-cache: true
ruby-version: ${{ matrix.ruby }}
- name: Run tests
run: |
gem install bundler
bundle install --jobs 4 --retry 3
bundle exec rspec
static-type-checking:
run: bundle exec rspec
static_type_check:
name: "Type Check"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@5126516654c75f76bca1de45dd82a3006d8890f9
- uses: actions/checkout@8230315d06ad95c617244d2f265d237a1682d445
- name: Set up Ruby
uses: ruby/setup-ruby@bd94d6a504586da892a5753afdd1480096ed30df
uses: ruby/setup-ruby@eae47962baca661befdfd24e4d6c34ade04858f7
with:
bundler-cache: true
ruby-version: head
- name: Run static type checks
run: |
gem install bundler
bundle install --jobs 4 --retry 3
bundle exec srb tc
run: bundle exec srb tc
21 changes: 0 additions & 21 deletions .github/workflows/publish.yml

This file was deleted.

1 change: 1 addition & 0 deletions sorbet/config
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
--dir
.
--ignore=/spec
--ignore=/vendor/bundle
--enable-experimental-requires-ancestor