Skip to content

Commit 4d963b7

Browse files
committed
Updates templates and bumps version
1 parent 0e41f33 commit 4d963b7

File tree

11 files changed

+60
-27
lines changed

11 files changed

+60
-27
lines changed

.github/workflows/ci-auto-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111

1212
jobs:
1313
run-tests:
14-
name: Run Unit Tests
14+
name: Auto Release Unit Testing
1515
uses: ./.github/workflows/ci-tests.yml
1616

1717
permissions:

.github/workflows/ci-tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ on:
1414
jobs:
1515

1616
run_unit_tests:
17+
name: Unit Tests
1718

1819
runs-on: ubuntu-20.04
1920

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,20 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

88
---
99

10+
## [**2.0.1**] - 2023-04-05
11+
12+
## Added
13+
14+
-
15+
16+
## Changed
17+
18+
-
19+
20+
### Fixed
21+
22+
- Adds fixes to cpp templates.
23+
1024
## [**2.0.0**] - 2023-04-04
1125

1226
## Added

CHANGES.md

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,11 @@
11
## Added
22

3-
- Action for auto releases in pushes to master. Release tag is set to 'latest' automatically.
4-
- Action for tagged releases in tag pushes.
5-
- Action for running unit tests inside the repo.
6-
- Template action for python's tagged release.
7-
- Template action for python's auto release.
8-
- Updated project description and files.
9-
- Template action for generic's tagged release.
10-
- Template action for generic's auto release.
11-
- Template action for cpp's tagged release.
12-
- Template action for cpp's auto release.
13-
- Auto-releases and tagged releases now will pick body from this file.
14-
- Upgrade project documentation.
3+
-
154

165
## Changed
176

18-
- Interface and variable selection.
19-
- Simplified config. process with less options.
7+
-
208

219
### Fixed
2210

23-
- Fixes along the actions, both templated and the ones for this very repository.
11+
- Adds fixes to cpp templates.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This repository can be used for adding Github Actions and templates to an existi
44

55
## Version
66

7-
Current version is 2.0.0 and was set according to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
Current version is 2.0.1 and was set according to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
88

99
Project's version should be updated, when applicable:
1010

{{ cookiecutter.__github_folder }}/_/cpp/workflows/ci-auto-release-cpp.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,16 @@ on:
1717

1818
jobs:
1919
run-tests:
20-
name: Run Unit Tests
20+
name: Auto Release Unit Testing
2121
uses: ./.github/workflows/ci-tests-cpp.yml
22+
##########################################################################
23+
# Please uncomment and fill the following if the image comes from a private repository
24+
# More info in: https://docs.github.com/en/actions/security-guides/encrypted-secrets
25+
##########################################################################
26+
# secrets:
27+
# RepositoryUser: {{ '${{ secrets.RepositoryUser }}' }}
28+
# RepositoryPass: {{ '${{ secrets.RepositoryPass }}' }}
29+
##########################################################################
2230

2331
############################################################################
2432
# Minimum permissions required by EnricoMi/publish-unit-test-result-action@v2
@@ -62,7 +70,7 @@ jobs:
6270
id: release-build
6371
working-directory: .
6472
run: |
65-
cmake -S . -B build -DCMAKE_BUILD_TYPE={{ '${{BUILD_TYPE}}' }}
73+
cmake -S . -B build -DCMAKE_BUILD_TYPE={{ '${{env.BUILD_TYPE}}' }}
6674
cmake --build build
6775
6876
- name: Package application
@@ -92,5 +100,4 @@ jobs:
92100
generate_release_notes: true
93101
# body_path: {{ '${{ github.workspace }}' }}/CHANGES.md
94102
files: |
95-
{{ '${{ github.workspace }}' }}/build/packages/*.tar.gz
96103
{{ '${{ github.workspace }}' }}/build/packages/*.deb

{{ cookiecutter.__github_folder }}/_/cpp/workflows/ci-tagged-release-cpp.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,16 @@ on:
1717

1818
jobs:
1919
run-tests:
20-
name: Run Unit Tests
20+
name: Tagged Release Unit Testing
2121
uses: ./.github/workflows/ci-tests-cpp.yml
22+
##########################################################################
23+
# Please uncomment and fill the following if the image comes from a private repository
24+
# More info in: https://docs.github.com/en/actions/security-guides/encrypted-secrets
25+
##########################################################################
26+
# secrets:
27+
# RepositoryUser: {{ '${{ secrets.RepositoryUser }}' }}
28+
# RepositoryPass: {{ '${{ secrets.RepositoryPass }}' }}
29+
##########################################################################
2230

2331
############################################################################
2432
# Minimum permissions required by EnricoMi/publish-unit-test-result-action@v2
@@ -62,7 +70,7 @@ jobs:
6270
id: release-build
6371
working-directory: .
6472
run: |
65-
cmake -S . -B build -DCMAKE_BUILD_TYPE={{ '${{BUILD_TYPE}}' }}
73+
cmake -S . -B build -DCMAKE_BUILD_TYPE={{ '${{env.BUILD_TYPE}}' }}
6674
cmake --build build
6775
6876
- name: Package application
@@ -80,5 +88,4 @@ jobs:
8088
generate_release_notes: true
8189
# body_path: {{ '${{ github.workspace }}' }}/CHANGES.md
8290
files: |
83-
{{ '${{ github.workspace }}' }}/build/packages/*.tar.gz
8491
{{ '${{ github.workspace }}' }}/build/packages/*.deb

{{ cookiecutter.__github_folder }}/_/cpp/workflows/ci-tests-cpp.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ env:
99
##############################################################################
1010
TEST_TARGET_NAME: test_target_name
1111
##############################################################################
12+
# Target path where to find tests executable. Replace the variable accordingly.
13+
##############################################################################
14+
TEST_EXECUTABLE_PATH: ./build/tests
15+
##############################################################################
1216
# Build type for the test run. Defaults to Debug.
1317
##############################################################################
1418
BUILD_TYPE: Debug
@@ -23,6 +27,16 @@ on:
2327
# Relevant where using it as a reusable workflow
2428
##############################################################################
2529
workflow_call:
30+
##########################################################################
31+
# Please uncomment and fill the following if the image comes from a private repository
32+
# More info in: https://docs.github.com/en/actions/security-guides/encrypted-secrets
33+
##########################################################################
34+
# secrets:
35+
# RepositoryUser:
36+
# required: true
37+
# RepositoryPass:
38+
# required: true
39+
##########################################################################
2640

2741
jobs:
2842

@@ -63,14 +77,15 @@ jobs:
6377
id: tests-build
6478
working-directory: .
6579
run: |
66-
cmake -S . -B build -DCMAKE_BUILD_TYPE={{ '${{BUILD_TYPE}}' }}
80+
cmake -S . -B build -DCMAKE_BUILD_TYPE={{ '${{env.BUILD_TYPE}}' }}
6781
cmake --build build -t {{ '${{ env.TEST_TARGET_NAME }}' }}
6882
6983
- name: Run tests
7084
id: tests-run
7185
working-directory: .
7286
run: |
73-
./build/test/{{ '${{ env.TEST_TARGET_NAME }}' }} --reporter junit -o junit/ci-result-junit.xml
87+
mkdir junit
88+
{{ '${{env.TEST_EXECUTABLE_PATH}}' }}/{{ '${{ env.TEST_TARGET_NAME }}' }} --reporter junit -o junit/ci-result-junit.xml
7489
7590
- name: Publish Unit Test Results
7691
id: tests-publish

{{ cookiecutter.__github_folder }}/_/cpp/workflows/cpp-ci-checklist.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Be sure to properly fine-tune the generated actions before committing it to the
55
## ci-tests-cpp
66

77
- [ ] [**ENV**] The target name for the test executable has been configured.
8+
- [ ] [**ENV**] The location for the test executable has been configured.
89
- [ ] [**JOB-CONF**] The target Docker image where to run the test has been specified (defaults to
910
*ubuntu:jammy*). **Delete it if not needed**.
1011
- [ ] [**JOB-CONF**] The credentials for acquiring the Docker image (if needed) have been configured

{{ cookiecutter.__github_folder }}/_/python/workflows/ci-auto-release-python.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ on:
2222

2323
jobs:
2424
run-tests:
25-
name: Run Unit Tests
25+
name: Auto Release Unit Testing
2626
uses: ./.github/workflows/ci-tests-python.yml
2727

2828
############################################################################

0 commit comments

Comments
 (0)