Skip to content

Commit a01e033

Browse files
authored
ci: add yard doc and rufo workflows (#75)
1 parent 51cbef9 commit a01e033

File tree

2 files changed

+35
-3
lines changed

2 files changed

+35
-3
lines changed

.github/workflows/codeql.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ on:
88
push:
99
branches:
1010
- develop
11-
schedule:
12-
-
13-
cron: "45 1 * * 3"
1411

1512
jobs:
1613
analyze:
@@ -36,3 +33,12 @@ jobs:
3633
uses: github/codeql-action/autobuild@v1
3734
- name: "Perform CodeQL Analysis"
3835
uses: github/codeql-action/analyze@v1
36+
- uses: ruby/setup-ruby@v1
37+
with:
38+
ruby-version: '2.7'
39+
bundler-cache: true
40+
- name: "Run rufo code formatting checks"
41+
run: |
42+
gem install rufo
43+
rufo --check ./lib
44+
rufo --check ./spec

.github/workflows/docs.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
name: Docs
3+
4+
on:
5+
push:
6+
branches:
7+
- develop
8+
9+
jobs:
10+
docs:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: ruby/setup-ruby@v1
15+
with:
16+
ruby-version: '2.7'
17+
bundler-cache: true
18+
- name: Run Yard Doc
19+
run: |
20+
gem install yard
21+
yard doc
22+
- name: Deploy GH Pages
23+
uses: JamesIves/[email protected]
24+
with:
25+
branch: gh-pages
26+
folder: doc/

0 commit comments

Comments
 (0)