From a4742a07dad0d88c07c6d827527a7086c1c33509 Mon Sep 17 00:00:00 2001 From: Geremia Taglialatela Date: Sat, 2 Sep 2023 11:18:45 +0200 Subject: Add Yard Linter action --- .github/workflows/yard.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/yard.yml (limited to '.github/workflows/yard.yml') diff --git a/.github/workflows/yard.yml b/.github/workflows/yard.yml new file mode 100644 index 00000000..61e27f46 --- /dev/null +++ b/.github/workflows/yard.yml @@ -0,0 +1,32 @@ +name: YARD + +on: + push: + branches: ['*'] + pull_request: + branches: ['*'] + +permissions: + contents: read + +jobs: + rubocop: + name: YARD + runs-on: ${{ matrix.os }} + env: + BUNDLE_JOBS: 4 + BUNDLE_RETRY: 3 + strategy: + matrix: + os: [ubuntu-latest] + ruby-version: ['3.2'] + + steps: + - uses: actions/checkout@v3 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby-version }} + bundler-cache: true + - name: Lint YARD documentation + run: bundle exec yard doc --fail-on-warning --no-output --no-progress -- cgit v1.2.3