Skip to content

Commit

Permalink
Add yard build action
Browse files Browse the repository at this point in the history
  • Loading branch information
hakanensari committed Oct 4, 2024
1 parent 3fc624b commit b1c22ab
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ jobs:
- run: bundle exec rubocop

verify-links:
needs: [lint]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -24,7 +23,6 @@ jobs:
- run: bin/verify-links

test:
needs: [verify-links]
strategy:
matrix:
ruby: ["3.2", "3.3"]
Expand All @@ -39,7 +37,7 @@ jobs:

coverage:
if: github.event_name == 'push'
needs: [test]
needs: [lint, verify-links, test]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: docs

on:
push:
branches:
- main
tags:
- "v[0-9]+.[0-9]+.[0-9]+"

permissions:
id-token: write
pages: write

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.3"
bundler-cache: true
- run: bundle exec rake yard
- uses: actions/upload-pages-artifact@v3
with:
path: doc/
- uses: actions/deploy-pages@v4

0 comments on commit b1c22ab

Please sign in to comment.