diff --git a/.github/workflows/rundoc-ci.yml b/.github/workflows/rundoc-ci.yml index b8cae95..5f7bd63 100644 --- a/.github/workflows/rundoc-ci.yml +++ b/.github/workflows/rundoc-ci.yml @@ -6,6 +6,12 @@ on: jobs: test-rundoc: runs-on: ubuntu-latest + env: + BUNDLE_GEMFILE: .rundoc-workspace/Gemfile + strategy: + matrix: + lang: ["ruby", "dotnet"] + fail-fast: false steps: - uses: actions/checkout@v4 with: @@ -15,13 +21,11 @@ jobs: with: ruby-version: "3.3" bundler-cache: true # do run 'bundle install' and cache - working-directory: .rundoc-workspace - uses: buildpacks/github-actions/setup-pack@v5.8.3 # [CONFIG] add different languages set up here - run: | - bundle exec rundoc ../docs/src/ruby/RUNDOC.md \ - --on-success-dir ../docs/ruby \ - --on-failure-dir ../docs/fail \ + bundle exec rundoc ../docs/src/${{ matrix.lang }}/RUNDOC.md \ + --on-success-dir ../docs/${{ matrix.lang }} \ + --on-failure-dir ../docs/fail/${{ matrix.lang }} \ --force - working-directory: .rundoc-workspace diff --git a/.github/workflows/rundoc-pr.yml b/.github/workflows/rundoc-pr.yml index d770433..5d02d28 100644 --- a/.github/workflows/rundoc-pr.yml +++ b/.github/workflows/rundoc-pr.yml @@ -8,6 +8,12 @@ on: jobs: run-rundoc: runs-on: pub-hk-ubuntu-24.04-ip + env: + BUNDLE_GEMFILE: .rundoc-workspace/Gemfile + strategy: + matrix: + lang: ["ruby", "dotnet"] + fail-fast: false steps: - name: Get token for GH application (Linguist) uses: actions/create-github-app-token@v1 @@ -25,23 +31,21 @@ jobs: with: ruby-version: "3.3" bundler-cache: true # do run 'bundle install' and cache - working-directory: .rundoc-workspace - uses: buildpacks/github-actions/setup-pack@v5.8.3 # [CONFIG] add different languages set up here - run: | - bundle exec rundoc ../docs/src/ruby/RUNDOC.md \ - --on-success-dir ../docs/ruby \ - --on-failure-dir ../docs/fail \ + bundle exec rundoc docs/src/${{ matrix.lang }}/RUNDOC.md \ + --on-success-dir docs/${{ matrix.lang }} \ + --on-failure-dir docs/fail/${{ matrix.lang }} \ --force - working-directory: .rundoc-workspace continue-on-error: true - name: Create Pull Request id: pr uses: peter-evans/create-pull-request@v7 with: token: ${{ steps.generate-token.outputs.token }} - branch: rundoc-update + branch: rundoc-update-${{ matrix.lang }} delete-branch: true base: main commit-message: Update tutorials