Skip to content

Commit c30b98a

Browse files
committed
Add a CI workflow
1 parent 602a71e commit c30b98a

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

.github/workflows/ci.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
name: Linters
9+
steps:
10+
- uses: actions/checkout@v4
11+
- name: Set up Ruby
12+
uses: ruby/setup-ruby@v1
13+
with:
14+
bundler-cache: true
15+
- name: Run type check
16+
run: bundle exec srb tc
17+
- name: Lint Ruby files
18+
run: bundle exec rubocop
19+
- name: Verify documentation
20+
run: bin/docs
21+
- name: Run tests
22+
run: bin/test
23+
- name: Verify gem RBIs are up-to-date
24+
run: bin/tapioca gem --verify
25+
- name: Verify duplicates in shims
26+
run: bin/tapioca check-shims

bin/docs

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env bash
2+
3+
bundle exec rake generate_dsl_documentation

0 commit comments

Comments
 (0)