Skip to content

Commit

Permalink
added container testing
Browse files Browse the repository at this point in the history
  • Loading branch information
MCWertGaming authored and jidicula committed Oct 8, 2021
1 parent 7709c2a commit dda0f19
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/dockerimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
9 changes: 9 additions & 0 deletions test/hello-world.cpp
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;
}

0 comments on commit dda0f19

Please sign in to comment.