testing some test cases
This commit is contained in:
parent
7ec7ecb0c0
commit
414fee535e
|
@ -0,0 +1,14 @@
|
|||
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
|
|
@ -0,0 +1,12 @@
|
|||
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"
|
|
@ -0,0 +1,9 @@
|
|||
name: Failure Test
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
fail-test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: This should fail
|
||||
run: exit 1
|
|
@ -11,39 +11,7 @@ jobs:
|
|||
run: echo "Gitea CI/CD is working!"
|
||||
|
||||
|
||||
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
|
||||
|
||||
|
||||
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"
|
||||
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
fail-test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: This should fail
|
||||
run: exit 1
|
||||
|
||||
|
Loading…
Reference in New Issue