Skip to content

Instantly share code, notes, and snippets.

@brentlaster
Created February 4, 2024 13:31
Show Gist options
  • Save brentlaster/72b060faa8e84df14c2a5f9485d89231 to your computer and use it in GitHub Desktop.
Save brentlaster/72b060faa8e84df14c2a5f9485d89231 to your computer and use it in GitHub Desktop.
Code for test-run job for CICD in 3 weeks workshop by @getskillsnow
test-run:
runs-on: ubuntu-latest
needs: build
steps:
- name: Download candidate artifacts
uses: actions/download-artifact@v4
with:
name: greetings-jar
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Execute test
shell: bash
run: |
chmod +x ./test-script.sh
./test-script.sh ${{ github.event.inputs.myVersion || needs.build.outputs.artifact-tag }} ${{ github.event.inputs.myValues }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment