Skip to content

Add test branch #1

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
10 changes: 10 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ permissions:

jobs:
build:
env:
TF_WORKSPACE: test
runs-on: ubuntu-latest

steps:
Expand All @@ -32,6 +34,12 @@ jobs:
java-version: '11'
distribution: 'temurin'

- name: Override
run: echo "TF_WORKSPACE=test2" >> $GITHUB_ENV

- name: Test
run: echo "${{ env.TF_WORKSPACE }}"

- name: Run Tests
run: ./gradlew test

Expand Down Expand Up @@ -59,12 +67,14 @@ jobs:
fi

- name: Push changes
if: ${{ github.event_name == 'push' }}
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GH_TOKEN }}
branch: ${{ github.ref }}

- name: Upload JaCoCo coverage report
if: ${{ github.event_name == 'push' }}
uses: actions/upload-artifact@v2
with:
name: jacoco-report
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,18 @@ jobs:
triggered: ${{ steps.set-outputs.outputs.triggered }}
status_ok: ${{ steps.set_status.outputs.status_ok }}
steps:
- name: Input
run: npx swagger-merger

- name: Set GitHub outputs
id: set-outputs
run: |
echo 'Test step executed'
echo "triggered=true" >> $GITHUB_OUTPUT
echo 'CONCLUSION=${{ env.WORKFLOW_CONCLUSION }}'
echo "${{ github.event_name }}"
echo "${{ github.head_ref }}"
echo "${{ github.ref_name }}"
# exit 1
# echo "OUTPUT=${{ steps. }}" >> $GITHUB_OUTPUT
- name: 'Test step 2'
Expand Down