Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
irinaschubert
committed
Sep 2, 2022
1 parent
5782494
commit 71c772f
Showing
22 changed files
with
266 additions
and
512 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
|
||
jobs: | ||
build-and-test: | ||
name: Build and test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Run preparatory steps | ||
uses: dasch-swiss/dsp-api/.github/actions/preparation@main | ||
- name: Run all tests | ||
run: make test | ||
- name: Upload coverage data to codacy | ||
uses: codacy/codacy-coverage-reporter-action@v1 | ||
with: | ||
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} | ||
coverage-reports: ./target/scala-2.13/coverage-report/cobertura.xml | ||
- name: Upload coverage data to codecov | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
files: ./target/scala-2.13/coverage-report/cobertura.xml | ||
|
||
test-client-test-data: | ||
name: Test client-test-data | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Run preparatory steps | ||
uses: dasch-swiss/dsp-api/.github/actions/preparation@main | ||
- name: Create client-test-data | ||
run: make client-test-data | ||
|
||
test-repository-upgrade: | ||
name: Test repository upgrade | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Run preparatory steps | ||
uses: dasch-swiss/dsp-api/.github/actions/preparation@main | ||
- name: Test repository upgrade | ||
run: make test-repository-upgrade | ||
- name: Dump docker logs | ||
uses: jwalton/gh-docker-logs@v1 | ||
|
||
test-docs-build: | ||
name: Test docs | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout source | ||
uses: actions/checkout@v3 | ||
- name: Install requirements (pip, npm, apt) | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r docs/requirements.txt | ||
npm install --global typedoc | ||
sudo apt-get install graphviz | ||
- name: Build docs | ||
run: make docs-build | ||
|
||
check-formatting: | ||
name: Check formatting | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Run preparatory steps | ||
uses: dasch-swiss/dsp-api/.github/actions/preparation@main | ||
- name: Check formatting | ||
run: make check |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Release | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- closed | ||
|
||
jobs: | ||
create-release: | ||
name: Create release PR | ||
runs-on: ubuntu-latest | ||
# Automate releases with Conventional Commit Messages as Pull Requests are merged into "main" branch | ||
if: github.event.pull_request.merged == true | ||
steps: | ||
- name: Run release please action | ||
uses: GoogleCloudPlatform/release-please-action@v2 | ||
with: | ||
token: ${{ secrets.GH_TOKEN }} | ||
release-type: simple | ||
package-name: dsp-api | ||
changelog-types: '[ | ||
{"type": "feat", "section": "Enhancements", "hidden": false }, | ||
{"type": "fix", "section": "Bug Fixes", "hidden": false }, | ||
{"type": "build", "section": "Maintenance", "hidden": false }, | ||
{"type": "chore", "section": "Maintenance", "hidden": false }, | ||
{"type": "test", "section": "Maintenance", "hidden": false }, | ||
{"type": "style", "section": "Maintenance", "hidden": false }, | ||
{"type": "refactor", "section": "Maintenance", "hidden": false }, | ||
{"type": "docs", "section": "Documentation", "hidden": false } | ||
]' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Update Dependency Graph | ||
name: Dependencies | ||
|
||
on: | ||
push: | ||
|
Oops, something went wrong.