-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7709c2a
commit dda0f19
Showing
2 changed files
with
12 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,4 +17,6 @@ jobs: | |
steps: | ||
- uses: actions/[email protected] | ||
- name: Build the Docker image | ||
run: docker build . --file Dockerfile --tag clang-format-action:$(date +%s) | ||
run: docker build . --file Dockerfile --tag clang-format-action-test --no-cache | ||
- name: test the docker image | ||
run: docker run -e CLANG_FORMAT_VERSION=11 -e GITHUB_WORKSPACE=/test -it -v $(pwd)/test:/test --privileged debian:unstable-slim |
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,9 @@ | ||
// Hello world for testing the clang-format-action | ||
|
||
#include <iostream> | ||
int main() { | ||
std::cout << "Hello World!\n"; | ||
|
||
|
||
return 0; | ||
} |