Skip to content

Re-order CI steps #362

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

Merged
merged 2 commits into from
May 2, 2024
Merged
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
22 changes: 14 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,24 @@ jobs:
bundler-cache: true
cache-version: 7

- name: Check if documentation is up to date
run: bundle exec rake ruby_lsp:check_docs
- name: Run tests
run: bundle exec rails db:setup && bundle exec rails db:migrate && bundle exec rails test
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler: latest
bundler-cache: true

- name: Typecheck
if: matrix.os != 'windows-latest'
run: bundle exec srb tc

- name: Lint Ruby files
run: bin/rubocop

- name: Lint Ruby files
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was duplicated!

run: bin/rubocop

- name: Run tests
run: bundle exec rails db:setup && bundle exec rails db:migrate && bundle exec rails test
- name: Check if documentation is up to date
run: bundle exec rake ruby_lsp:check_docs