add ci
Some checks failed
ubuntu / Explore-Gitea-Actions (push) Failing after 16s

This commit is contained in:
2025-10-21 22:17:40 +08:00
parent a172949a3d
commit 202fe3c151
2 changed files with 22 additions and 8 deletions

View File

@@ -0,0 +1,19 @@
name: ubuntu
run-name: ubuntu-test
on: [ push ]
jobs:
Explore-Gitea-Actions:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: List files in the repository
run: |
ls ${{ gitea.workspace }}
apt install libmruby-dev
mkdir build && cd build
cmake ..
cmake --build . --target mrubypp_test
./mrubypp_test
- run: echo "🍏 This job's status is ${{ job.status }}."

View File

@@ -16,16 +16,10 @@ public:
}
int get_x() const { return x_; }
void set_x(int x) {
//
x_ = x;
}
void set_x(int x) { x_ = x; }
int get_y() const { return y_; }
void set_y(int y) {
//
y_ = y;
}
void set_y(int y) { y_ = y; }
void add(const Point &other) {
this->x_ += other.x_;
@@ -113,6 +107,7 @@ TEST_CASE("Point", "[class]") {
REQUIRE(point_result.get_x() == 2);
REQUIRE(point_result.get_y() == 4);
}
SECTION("test_class_method") {
auto result = engine.call<int>("test_class_method");
REQUIRE(result == 1);