forked from hpi-sam/digital-fuesim-manv
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release v0.4.0
- Loading branch information
Showing
149 changed files
with
5,582 additions
and
628 deletions.
There are no files selected for viewing
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,14 @@ | ||
name: Add commit hash to version | ||
description: Adds the current branch name and commit hash as suffix to the current version number | ||
runs: | ||
using: composite | ||
steps: | ||
- uses: ./.github/actions/extract-version | ||
- name: Get suffix | ||
id: get-suffix | ||
run: echo "SUFFIX=$(git branch --show-current).$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT | ||
shell: bash | ||
- name: Add suffix to version number | ||
uses: ./.github/actions/update-version | ||
with: | ||
version: '${{ env.VERSION_NAME }}+${{ steps.get-suffix.outputs.SUFFIX }}' |
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,10 @@ | ||
name: Extract version | ||
description: Reads the current version number from the package.json and writes it to the VERSION_NAME GitHub environment variable | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Read version from package.json | ||
run: | | ||
versionName=`jq -jM .version package.json` | ||
echo "VERSION_NAME=$versionName" >> "$GITHUB_ENV" | ||
shell: bash |
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,6 @@ | ||
### PR Checklist | ||
|
||
Please make sure to fulfil the following conditions before marking this PR ready for review: | ||
|
||
- [ ] If this PR adds or changes features or fixes bugs, this has been added to the changelog | ||
- [ ] If this PR adds new actions or other ways to alter the state, [test scenarios](https://github.com/hpi-sam/digital-fuesim-manv-public-test-scenarios) have been added |
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 |
---|---|---|
|
@@ -30,7 +30,7 @@ jobs: | |
run: cd shared && npm run build && cd .. | ||
|
||
lint: | ||
timeout-minutes: 3 | ||
timeout-minutes: 5 | ||
runs-on: ubuntu-latest | ||
|
||
needs: build | ||
|
@@ -277,6 +277,8 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v3 | ||
# Source: https://docs.docker.com/ci-cd/github-actions/ | ||
- name: Add commit hash to version | ||
uses: ./.github/actions/add-commit-hash-to-version | ||
- name: Login to docker | ||
uses: docker/login-action@v2 | ||
with: | ||
|
@@ -300,10 +302,7 @@ jobs: | |
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Extract version | ||
run: | | ||
versionName=`jq -jM .version package.json` | ||
echo "version_name=$versionName" >> "$GITHUB_ENV" | ||
- uses: ./.github/actions/extract-version | ||
# Source: https://docs.docker.com/ci-cd/github-actions/ | ||
- name: Login to docker | ||
uses: docker/login-action@v2 | ||
|
@@ -318,7 +317,7 @@ jobs: | |
push: true | ||
tags: > | ||
${{ secrets.DOCKER_HUB_USERNAME }}/dfm:latest , | ||
${{ secrets.DOCKER_HUB_USERNAME }}/dfm:${{ env.version_name }} | ||
${{ secrets.DOCKER_HUB_USERNAME }}/dfm:${{ env.VERSION_NAME }} | ||
release-main: | ||
timeout-minutes: 2 | ||
|
@@ -333,10 +332,7 @@ jobs: | |
run: | | ||
git config user.name "GitHub Actions" | ||
git config user.email [email protected] | ||
- name: Extract version | ||
run: | | ||
versionName=`jq -jM .version package.json` | ||
echo "VERSION_NAME=$versionName" >> "$GITHUB_ENV" | ||
- uses: ./.github/actions/extract-version | ||
- name: Extract release notes | ||
id: extract_release_notes | ||
uses: ffurrer2/extract-release-notes@v1 | ||
|
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 |
---|---|---|
|
@@ -8,3 +8,5 @@ docker-compose.yml | |
|
||
# The states in here should not be touched by humans | ||
benchmark/data | ||
|
||
test-scenarios/ |
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
Oops, something went wrong.