From 9dc8be175145b83f8b52c06fedebdd0971e1f403 Mon Sep 17 00:00:00 2001 From: Ardika Bagus Date: Fri, 21 Jun 2024 13:21:32 +0700 Subject: [PATCH] ci: test Signed-off-by: Ardika Bagus --- .github/workflows/test.yaml | 44 +++++++++++-------------------------- 1 file changed, 13 insertions(+), 31 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index d2c9ded..73c21c2 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -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 }} @@ -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