Files
wrkflw/tests/workflows/cpp-test.yml
bahdotsh 181b5c5463 feat: reorganize test files and delete manual test checklist
- Move test workflows to tests/workflows/
- Move GitLab CI fixtures to tests/fixtures/gitlab-ci/
- Move test scripts to tests/scripts/
- Move Podman testing docs to tests/
- Update paths in test scripts and documentation
- Delete MANUAL_TEST_CHECKLIST.md as requested
- Update tests/README.md to reflect new organization
2025-08-09 15:30:53 +05:30

38 lines
860 B
YAML

name: C++ Test
on:
push:
branches: [ main ]
pull_request:
jobs:
test:
name: Test C++
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup GCC
uses: egor-tensin/setup-gcc@v1
with:
version: 11
- name: Check GCC version
run: g++ --version
- name: Create simple program
run: |
echo '#include <iostream>' > hello.cpp
echo 'int main() {' >> hello.cpp
echo ' std::cout << "Hello from C++!" << std::endl;' >> hello.cpp
echo ' std::cout << "Running on GCC" << std::endl;' >> hello.cpp
echo ' return 0;' >> hello.cpp
echo '}' >> hello.cpp
- name: Build C++ program
run: g++ hello.cpp -o hello
- name: Run C++ program
run: ./hello