Skip to content

Commit

Permalink
Merge branch 'rav/cleanup_actions' into rav/spec_reactions
Browse files Browse the repository at this point in the history
  • Loading branch information
richvdh committed Mar 28, 2023
2 parents a6870b1 + 5903758 commit 3fea1a6
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
24 changes: 19 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,21 @@ jobs:
check-examples:
name: "πŸ”Ž Check Event schema examples"
runs-on: ubuntu-latest
container: uhoreg/matrix-doc-build
steps:
- name: "πŸ“₯ Source checkout"
uses: actions/checkout@v2
- name: "βž• Setup Python"
uses: actions/setup-python@v4
with:
python-version: '3.9'
cache: 'pip'
cache-dependency-path: scripts/requirements.txt
- name: "βž• Install dependencies"
run: |
pip install -r scripts/requirements.txt
- name: "πŸ”Ž Run validator"
run: |
/env/bin/python scripts/check-event-schema-examples.py
python scripts/check-event-schema-examples.py
calculate-baseurl:
name: "βš™οΈ Calculate baseURL for later jobs"
Expand All @@ -70,15 +78,21 @@ jobs:
build-openapi:
name: "🐍 Build OpenAPI definitions"
runs-on: ubuntu-latest
container: "python:3.9"
needs: [calculate-baseurl]
steps:
- name: "πŸ“₯ Source checkout"
uses: actions/checkout@v2
- name: "πŸ“¦ Asset creation"
- name: "βž• Setup Python"
uses: actions/setup-python@v4
with:
python-version: '3.9'
cache: 'pip'
cache-dependency-path: scripts/requirements.txt
- name: "βž• Install dependencies"
run: |
python3 -m venv env && . env/bin/activate
pip install -r scripts/requirements.txt
- name: "πŸ“¦ Asset creation"
run: |
# The output path matches the final deployment path at spec.matrix.org
scripts/dump-swagger.py \
--base-url "https://spec.matrix.org${{ needs.calculate-baseurl.outputs.baseURL }}" \
Expand Down
1 change: 1 addition & 0 deletions changelogs/internal/newsfragments/1476.clarification
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Minor cleanups to the GitHub Actions workflows

0 comments on commit 3fea1a6

Please sign in to comment.