Skip to content

Commit 4ac3e46

Browse files
authored
Re-order CI steps (#362)
* Re-order CI steps * Split into two jobs --------- Co-authored-by: Andy Waite <[email protected]>
1 parent 2947b77 commit 4ac3e46

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,18 +42,24 @@ jobs:
4242
bundler-cache: true
4343
cache-version: 7
4444

45-
- name: Check if documentation is up to date
46-
run: bundle exec rake ruby_lsp:check_docs
45+
- name: Run tests
46+
run: bundle exec rails db:setup && bundle exec rails db:migrate && bundle exec rails test
47+
lint:
48+
runs-on: ubuntu-latest
49+
steps:
50+
- uses: actions/checkout@v3
51+
52+
- name: Set up Ruby
53+
uses: ruby/setup-ruby@v1
54+
with:
55+
bundler: latest
56+
bundler-cache: true
4757

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

5261
- name: Lint Ruby files
5362
run: bin/rubocop
5463

55-
- name: Lint Ruby files
56-
run: bin/rubocop
57-
58-
- name: Run tests
59-
run: bundle exec rails db:setup && bundle exec rails db:migrate && bundle exec rails test
64+
- name: Check if documentation is up to date
65+
run: bundle exec rake ruby_lsp:check_docs

0 commit comments

Comments
 (0)