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

chore: Improve GitHub actions (DEV-1112) #2182

Merged
merged 48 commits into from Sep 2, 2022
Merged
Show file tree
Hide file tree
Changes from 47 commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
5402ec6
test reusable github action
Aug 29, 2022
25ca2bf
test reusable GitHub action
Aug 29, 2022
1b78955
test reusable GitHub action
Aug 29, 2022
5b250b5
test reusable GitHub action
Aug 29, 2022
337e483
test reusable GitHub action
Aug 29, 2022
6f88538
test reusable GitHub action
Aug 29, 2022
91ead78
test reusable GitHub action
Aug 29, 2022
a7d461d
test reusable action
Aug 29, 2022
3b07bbc
fix typos
Aug 29, 2022
19c784a
test reusable action
Aug 29, 2022
71639a2
test reusable github action
Aug 30, 2022
5fa68c5
test reusable github action
Aug 30, 2022
d1e2b62
Update preparation.yml
Aug 30, 2022
684dee1
test reusable action
Aug 30, 2022
ec53ef2
test reusable action
Aug 30, 2022
0f8a95e
Update on-push.yml
Aug 30, 2022
c73c81d
Update on-push.yml
Aug 30, 2022
780512a
Update on-push.yml
Aug 30, 2022
5403272
Update on-push.yml
Aug 30, 2022
b39e949
test reusable action
Aug 30, 2022
9d3a805
Update on-push.yml
Aug 30, 2022
2a0ce5c
Update action.yml
Aug 30, 2022
a077b13
Update on-push.yml
Aug 30, 2022
585239f
remove checkout step
Aug 30, 2022
2b62a1e
Update on-push.yml
Aug 30, 2022
d905253
Update on-push.yml
Aug 30, 2022
23afe17
improve github actions
Aug 30, 2022
e5ab820
use latest version
Aug 30, 2022
e83ff1c
improve GitHub actions
Aug 30, 2022
33a2bfc
improve GitHub actions
Aug 30, 2022
01033b8
improve github actions
Aug 30, 2022
239cd15
use action for cleanup
Aug 31, 2022
bc97927
reference latest commit
Aug 31, 2022
3e4c453
improve github workflows
Aug 31, 2022
b30f438
remove shell parameter
Aug 31, 2022
5bbd693
Merge branch 'main' into wip/dev-1112-improve-github-workflows
Aug 31, 2022
a76d832
test GitHub actions
Aug 31, 2022
3db5501
improve actions
Aug 31, 2022
cef553d
remove clean up steps
Sep 1, 2022
29fd064
separate test runs
Sep 1, 2022
b852e36
improve github actions
Sep 1, 2022
344a691
improve GitHub actions
Sep 1, 2022
d122128
clean up readme
Sep 1, 2022
bc8c4ad
clean up actions
Sep 1, 2022
e2de624
improve actions
Sep 1, 2022
d5ac00d
move standoff spec to IT
Sep 1, 2022
efba13a
format code
Sep 1, 2022
caa916e
add missing PR prefixes
Sep 2, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 0 additions & 14 deletions .github/actions/cleanup/action.yml

This file was deleted.

8 changes: 1 addition & 7 deletions .github/actions/preparation/action.yml
Expand Up @@ -6,15 +6,9 @@ runs:
steps:
- name: Checkout source
uses: actions/checkout@v3
with:
fetch-depth: 50
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version: "17"
- name: Install requirements (apt)
run: sudo apt-get install ca-certificates-java expect unzip
shell: bash
- name: Coursier cache
uses: coursier/cache-action@v6
cache: sbt
20 changes: 10 additions & 10 deletions .github/pull_request_template.md
@@ -1,18 +1,20 @@
<!-- Important! Please follow the guidelines for naming Pull Requests: https://docs.dasch.swiss/latest/developers/dsp/contribution/ -->

## PR Checklist
Issue Number: DEV-

## Pull Request Checklist

### Basic Requirements

Please check if your PR fulfills the following requirements:

- [ ] Tests for the changes have been added (for bug fixes / features)
- [ ] Docs have been added / updated (for bug fixes / features)

## PR Type
### PR Type

What kind of change does this PR introduce?

<!-- Please check the one that applies to this PR using "x". -->

- [ ] Bugfix: represents bug fixes
- [ ] Refactor: represents production code refactoring
- [ ] Feature: represents a new feature
Expand All @@ -22,18 +24,16 @@ What kind of change does this PR introduce?
- [ ] Test: all about tests: adding, refactoring tests (no production code change)
- [ ] Other... Please describe:

Issue Number: N/A
### Does this PR introduce a breaking change?

## Does this PR introduce a breaking change?
<!-- If this PR contains a breaking change, please describe the impact and migration path for existing applications below. -->

- [ ] Yes
- [ ] No

## Does this PR change client-test-data?
### Does this PR change client-test-data?

- [ ] Yes (don't forget to update the JS-LIB team about the change)
- [ ] No

<!-- If this PR contains a breaking change, please describe the impact and migration path for existing applications below. -->

## Other information
### Other information
67 changes: 67 additions & 0 deletions .github/workflows/build-and-test.yml
@@ -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
28 changes: 28 additions & 0 deletions .github/workflows/create-release.yml
@@ -0,0 +1,28 @@
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": "refactor", "section": "Maintenance", "hidden": false },
{"type": "docs", "section": "Documentation", "hidden": false }
irinaschubert marked this conversation as resolved.
Show resolved Hide resolved
]'
2 changes: 1 addition & 1 deletion .github/workflows/dependency-graph.yml
@@ -1,4 +1,4 @@
name: Update Dependency Graph
name: Dependencies

on:
push:
Expand Down