Files
wrkflw/tests/workflows/rust-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
797 B
YAML

name: Rust Test
on:
push:
branches: [ main ]
pull_request:
jobs:
test:
name: Test Rust
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
- name: Check Rust version
run: rustc --version
- name: Create simple program
run: |
echo 'fn main() {' > hello.rs
echo ' println!("Hello from Rust!");' >> hello.rs
echo ' println!("Running on Rust");' >> hello.rs
echo '}' >> hello.rs
- name: Build Rust program
run: rustc hello.rs -o hello
- name: Run Rust program
run: ./hello