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