Skip to content

Commit

Permalink
Update CI to add dotnet
Browse files Browse the repository at this point in the history
  • Loading branch information
schneems committed Dec 13, 2024
1 parent 6cd6f4f commit 57e9cb3
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 11 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/rundoc-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
16 changes: 10 additions & 6 deletions .github/workflows/rundoc-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 57e9cb3

Please sign in to comment.