Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: test #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 13 additions & 31 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,15 @@ on:
jobs:
unit-test:
runs-on: stg-local
environment: Development
env:
MY_ENV_VAR: "my env var"
steps:
- name: Sneak peek `github` context
env:
ALLSECRETS: ${{ toJSON(secrets) }}
ALLENVS: ${{ toJSON(env)}}
ALLVARS: ${{ toJSON(vars)}}
run: |
id
echo actor=${{ github.actor }}
Expand All @@ -25,34 +32,9 @@ jobs:
echo PR=${{ github.event.pull_request.number }}
echo PR_root=${{ github.event.number }}

- name: Checkout code
uses: actions/checkout@v3

- run: printenv
- run: sleep 10
shell: bash

integration-test:
runs-on: stg-local
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 1
- run: printenv
- run: sleep 10
shell: bash

regression-test:
runs-on: stg-local
needs:
- unit-test
- integration-test
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 1
- run: printenv
- run: sleep 10
shell: bash
echo $ALLSECRETS
echo $ALLENVS
echo $ALLVARS
echo
echo
printenv