Skip to content

Commit

Permalink
ci: add yard doc and rufo workflows (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
q9f authored Jan 4, 2022
1 parent 51cbef9 commit a01e033
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ on:
push:
branches:
- develop
schedule:
-
cron: "45 1 * * 3"

jobs:
analyze:
Expand All @@ -36,3 +33,12 @@ jobs:
uses: github/codeql-action/autobuild@v1
- name: "Perform CodeQL Analysis"
uses: github/codeql-action/analyze@v1
- uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7'
bundler-cache: true
- name: "Run rufo code formatting checks"
run: |
gem install rufo
rufo --check ./lib
rufo --check ./spec
26 changes: 26 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
name: Docs

on:
push:
branches:
- develop

jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7'
bundler-cache: true
- name: Run Yard Doc
run: |
gem install yard
yard doc
- name: Deploy GH Pages
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: doc/

0 comments on commit a01e033

Please sign in to comment.