Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: split workflows #357

Merged
merged 1 commit into from
Dec 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI Build
name: Build Docs

on:
push:
Expand All @@ -10,43 +10,51 @@ env:
PYTHON_VERSION_DEFAULT: "3.10"

jobs:
build:
docs_xml:
runs-on: ubuntu-latest
defaults:
run:
working-directory: docgen/xml
steps:
- name: Checkout
# see https://github.com/actions/checkout
uses: actions/checkout@v4
- name: Set up JDK
# see https://github.com/actions/setup-java
uses: actions/setup-java@v4
with:
java-version: '8'
distribution: 'zulu'
java-package: jdk
- name: Build with Maven
run: mvn -B package --file pom.xml
working-directory: tools
- name: Setup Python Environment
# see https://github.com/actions/setup-python
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION_DEFAULT }}
architecture: 'x64'
- name: Generate JSON Schema documentation
run: ./gen.sh
working-directory: docgen/json
- name: Generate XML Schema documentation
- name: Generate Schema documentation
run: ./gen.sh
working-directory: docgen/xml
- name: Archive JSON Schema documentation
- name: Archive Schema documentation
# https://github.com/actions/upload-artifact
uses: actions/upload-artifact@v3
with:
name: JSON-Schema-documentation
path: docgen/json/docs
- name: Archive XML Schema documentation
name: XML-Schema-documentation
path: docgen/xml/docs
if-no-files-found: error
docs_json:
runs-on: ubuntu-latest
defaults:
run:
working-directory: docgen/json
steps:
- name: Checkout
# see https://github.com/actions/checkout
uses: actions/checkout@v4
- name: Setup Python Environment
# see https://github.com/actions/setup-python
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION_DEFAULT }}
architecture: 'x64'
- name: Generate Schema documentation
run: ./gen.sh
- name: Archive Schema documentation
# https://github.com/actions/upload-artifact
uses: actions/upload-artifact@v3
with:
name: XML-Schema-documentation
path: docgen/xml/docs
name: JSON-Schema-documentation
path: docgen/json/docs
if-no-files-found: error
32 changes: 32 additions & 0 deletions .github/workflows/test_java.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CT Java

on:
push:
branches: ['master', 'main']
pull_request:
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

defaults:
run:
working-directory: tools

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
# see https://github.com/actions/checkout
uses: actions/checkout@v4
- name: Set up JDK
# see https://github.com/actions/setup-java
uses: actions/setup-java@v4
with:
java-version: '8'
distribution: 'zulu'
java-package: jdk
- name: test with Maven
run: mvn clean test
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# docs: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions

name: JS CI
name: CT JavaScript

on:
push:
Expand All @@ -12,7 +12,6 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true


defaults:
run:
working-directory: tools/src/test/js
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
# docs: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions

name: PHP CI
name: CT PHP

on:
push:
branches: ['master', 'main']
pull_request:
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

defaults:
run:
working-directory: tools/src/test/php
Expand Down