test job validation

This commit is contained in:
neil 2022-10-24 20:10:08 +08:00
parent b5626af876
commit fb68f237ae

View file

@ -11,6 +11,9 @@ env:
jobs: jobs:
validation: validation:
runs-on: ubuntu-latest runs-on: ubuntu-latest
ouputs:
website: ${{steps.website.outputs.src}}
lambdas: ${{steps.lambdas.outputs.lambdas}}
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: dorny/paths-filter@v2 - uses: dorny/paths-filter@v2
@ -28,7 +31,7 @@ jobs:
deploy_sls: deploy_sls:
needs: validation needs: validation
if: steps.lambdas.outputs.lambdas == 'true' if: needs.validation.outputs.lambdas == 'true'
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
@ -51,7 +54,7 @@ jobs:
deploy: deploy:
needs: validation needs: validation
if: steps.website.outputs.src == 'true' if: needs.validation.outputs.website == 'true'
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: inject slug/short variables - name: inject slug/short variables