Skip to content

Commit

Permalink
Update version of checkout action (#38)
Browse files Browse the repository at this point in the history
* Update version of checkout action
* Update version of upload artefact action
* Update catch2 version
  • Loading branch information
vladiant authored Dec 19, 2022
1 parent a326a09 commit f25284d
Show file tree
Hide file tree
Showing 16 changed files with 363 additions and 266 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Create Build Environment
run: cmake -E make_directory ${{github.workspace}}/build
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deb_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Create Build Environment
run: cmake -E make_directory ${{github.workspace}}/build
Expand All @@ -36,7 +36,7 @@ jobs:
run: make package

- name: Upload Deb Package
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: deb_package
path: ${{github.workspace}}/build/CppProjectSample-1.0.0-Linux.deb
2 changes: 1 addition & 1 deletion .github/workflows/formatter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:

steps:
- name: Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Install dependencies
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: macOS-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Create Build Environment
run: cmake -E make_directory ${{github.workspace}}/build
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/memcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Install Valgrind
run: |
Expand All @@ -37,7 +37,7 @@ jobs:
run: cmake --build . --target valgrind

- name: Upload Memcheck Result
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: memcheck
path: ${{github.workspace}}/build/memcheck.txt
4 changes: 2 additions & 2 deletions .github/workflows/modernize.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:

steps:
- name: Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Install dependencies
run: |
Expand All @@ -36,7 +36,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Install Clang Tidy
run: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/sanitizers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Create Build Environment
run: cmake -E make_directory ${{github.workspace}}/build-clang-asan
Expand Down Expand Up @@ -41,7 +41,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Create Build Environment
run: cmake -E make_directory ${{github.workspace}}/build-clang-msan
Expand Down Expand Up @@ -74,7 +74,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Create Build Environment
run: cmake -E make_directory ${{github.workspace}}/build-clang-tsan
Expand Down Expand Up @@ -107,7 +107,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Create Build Environment
run: cmake -E make_directory ${{github.workspace}}/build-clang-ubsan
Expand Down
19 changes: 11 additions & 8 deletions .github/workflows/static_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Create Build Environment
run: cmake -E make_directory ${{github.workspace}}/build
Expand All @@ -22,7 +22,7 @@ jobs:
run: cmake .. -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_EXPORT_COMPILE_COMMANDS=ON

- name: Upload Compile Commands
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: compile_commands
path: ${{github.workspace}}/build/compile_commands.json
Expand All @@ -33,8 +33,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Download Compile Commands
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: compile_commands

Expand All @@ -43,17 +46,17 @@ jobs:
sudo apt-get update
sudo apt-get install -y cppcheck
- name: Run CppCheck
- name: Run CppCheck
shell: bash
# File test/test_simple_calc.cpp is ignored
run: |
cppcheck --project=${{github.workspace}}/compile_commands.json \
--error-exitcode=1 --std=c++17 \
--std=c++17 \
--output-file=${{github.workspace}}/cppcheck-report.txt \
--suppress=preprocessorErrorDirective:${{github.workspace}}/catch2/catch.hpp .
- name: Upload CppCheck Result
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: cppcheck_report
path: ${{github.workspace}}/cppcheck-report.txt
Expand All @@ -64,7 +67,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Download Compile Commands
uses: actions/download-artifact@v2
Expand All @@ -88,7 +91,7 @@ jobs:
-export-fixes ${{github.workspace}}/clang-tidy-fixes.yaml
- name: Upload Clang Tidy Result
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: clang_tidy_fixes
path: ${{github.workspace}}/clang-tidy-fixes.yaml
4 changes: 2 additions & 2 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Create Build Environment
run: cmake -E make_directory ${{github.workspace}}/build
Expand Down Expand Up @@ -41,7 +41,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Create Build Environment
run: cmake -E make_directory ${{github.workspace}}/build-clang
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/valgrind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Create Build Environment
run: cmake -E make_directory ${{github.workspace}}/build
Expand All @@ -27,7 +27,7 @@ jobs:
run: cmake --build . --config $BUILD_TYPE

- name: Upload Tests Executable
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: test_executable
path: ${{github.workspace}}/build/TestSampleLib
Expand Down Expand Up @@ -57,7 +57,7 @@ jobs:
run: valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --log-file=${{github.workspace}}/valgrind-memcheck.txt ${{github.workspace}}/TestSampleLib

- name: Upload Valgrind Memcheck Result
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: valgrind_memcheck
path: ${{github.workspace}}/valgrind-memcheck.txt
Expand Down Expand Up @@ -87,7 +87,7 @@ jobs:
run: valgrind --tool=helgrind --log-file=${{github.workspace}}/valgrind-helgrind.txt ${{github.workspace}}/TestSampleLib

- name: Upload Valgrind Helgrind Result
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: valgrind_helgrind
path: ${{github.workspace}}/valgrind-helgrind.txt
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: windows-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Create Build Environment
run: cmake -E make_directory ${{github.workspace}}/build
Expand Down Expand Up @@ -40,7 +40,7 @@ jobs:

# Upload SARIF file as an Artifact to download and view
- name: Upload SARIF as an Artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: sarif-file
path: ${{ steps.run-analysis.outputs.sarif }}
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ Test C++ CI project

### Catch2
* https://github.com/catchorg/Catch2
* commit de6fe184a9ac1a06895cdd1c9b437f0a0bdf14ad
* v2.13.4
* commit 182c910b4b63ff587a3440e08f84f70497e49a81
* v2.13.10

### FakeIt
* https://github.com/eranpeer/FakeIt
Expand Down
Loading

0 comments on commit f25284d

Please sign in to comment.