mirror of
https://code.forgejo.org/actions/checkout
synced 2025-04-22 00:33:53 +08:00
Added environment based path test
* __test__/verify-environment-path.sh: Added. * .github/workflows/test.yml:
This commit is contained in:
parent
e67ad3383b
commit
4f92610a97
2 changed files with 18 additions and 0 deletions
12
.github/workflows/test.yml
vendored
12
.github/workflows/test.yml
vendored
|
@ -10,6 +10,8 @@ on:
|
|||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
main_path: main_path_test
|
||||
steps:
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
|
@ -57,6 +59,16 @@ jobs:
|
|||
shell: bash
|
||||
run: __test__/verify-clean.sh
|
||||
|
||||
# Use environment variable as path
|
||||
- name: Environment path test
|
||||
uses: ./
|
||||
with:
|
||||
ref: test-data/v2/basic
|
||||
path: ${{ env.main_path }}
|
||||
- name: Verify environment path test
|
||||
shell: bash
|
||||
run: __test__/verify-environment-path.sh
|
||||
|
||||
# Side by side
|
||||
- name: Checkout side by side 1
|
||||
uses: ./
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue