Clarify Azure storage permissions #35
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run doc tests | |
on: | |
pull_request: | |
types: [opened, reopened, synchronize] | |
workflow_dispatch: | |
repository_dispatch: | |
types: [trigger-tests] | |
jobs: | |
setup: | |
runs-on: ubuntu-latest | |
outputs: | |
console: ${{ steps.filter.outputs.console }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Determine changed paths | |
id: filter | |
uses: dorny/paths-filter@v3 | |
with: | |
filters: | | |
console: | |
- 'modules/console/**' | |
run-tests: | |
needs: setup | |
permissions: | |
contents: write | |
pull-requests: write | |
issues: write | |
strategy: | |
fail-fast: false # Ensure all matrix jobs run to completion even if one fails | |
matrix: | |
os: [ubuntu-latest] # Only using Linux for now since macOS takes a long time | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Test docs | |
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'repository_dispatch' }} | |
run: npm i && npm run test-docs | |
working-directory: setup-tests | |
- name: Test Console docs | |
if: needs.setup.outputs.console == 'true' | |
run: npm i && npm run test-console-docs | |
working-directory: setup-tests | |
#- name: Test docs | |
# if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'repository_dispatch' }} | |
# uses: doc-detective/github-action@v1 | |
# with: | |
# input: modules | |
# config: setup-tests | |
# exit_on_fail: true | |
# create a PR/issue only if the workflow wasn't already triggered by a PR | |
# create_pr_on_change: true | |
# create_issue_on_fail: true | |
#- name: Test Console docs | |
# if: needs.setup.outputs.console == 'true' | |
# uses: doc-detective/github-action@v1 | |
# with: | |
# input: modules/console | |
# config: setup-tests | |
# exit_on_fail: true |