From 80f172be09b6be6928014b7c0071b40d69b326e3 Mon Sep 17 00:00:00 2001 From: algenreyubang Date: Thu, 3 Apr 2025 13:15:02 +0800 Subject: [PATCH] testing some the test cases --- .gitea/workflows/test.yml | 40 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index 4d9e1de..c86cdd6 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -8,4 +8,42 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - name: Print a message - run: echo "Gitea CI/CD is working!" \ No newline at end of file + run: echo "Gitea CI/CD is working!" + +name: Artifact Test +on: [push] + +jobs: + artifact-test: + runs-on: ubuntu-latest + steps: + - name: Create test file + run: echo "test content" > test.txt + - name: Upload artifact + uses: actions/upload-artifact@v3 + with: + name: test-file + path: test.txt + +name: Env Test +on: [push] + +env: + TEST_VAR: "gitea-test-value" + +jobs: + env-test: + runs-on: ubuntu-latest + steps: + - name: Print env var + run: echo "The value is $TEST_VAR" + +name: Failure Test +on: [push] + +jobs: + fail-test: + runs-on: ubuntu-latest + steps: + - name: This should fail + run: exit 1 \ No newline at end of file