testing some the test cases
This commit is contained in:
parent
1a0d7004aa
commit
80f172be09
|
@ -8,4 +8,42 @@ jobs:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Print a message
|
- name: Print a message
|
||||||
run: echo "Gitea CI/CD is working!"
|
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
|
Loading…
Reference in New Issue