josdem is testing out GitHub Actions π #58
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: GitHub Actions | |
run-name: ${{ github.actor }} is testing out GitHub Actions π | |
on: | |
push: | |
branches: [ "master" ] | |
jobs: | |
Explore-GitHub-Actions: | |
runs-on: ubuntu-latest | |
if: github.ref != 'refs/heads/develop' | |
steps: | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- run: echo "π The job was automatically triggered by a ${{ github.event_name }} event." | |
- run: echo "π§ This job is now running on a ${{ runner.os }} server hosted by GitHub!" | |
- run: echo "π The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
- run: echo "π‘ The ${{ github.repository }} repository has been cloned to the runner." | |
- run: echo "π₯οΈ The workflow is now ready to test your code on the runner." | |
- name: List files in the repository | |
run: ls ${{ github.workspace }} | |
- name: Execute array diff tests | |
run: cd ${{ github.workspace }}/simple-algorithms/array-diff && ./gradlew test | |
- name: Execute biggest price tests | |
run: cd ${{ github.workspace }}/simple-algorithms/biggest-price && ./gradlew test | |
- name: Execute birthday cake candles | |
run: cd ${{ github.workspace }}/simple-algorithms/birthday-cake-candles && ./gradlew test | |
- name: Execute common elements | |
run: cd ${{ github.workspace }}/simple-algorithms/common-elements && ./gradlew test | |
- name: Execute count bits | |
run: cd ${{ github.workspace }}/simple-algorithms/count-bits && ./gradlew test | |
- name: Execute counting character | |
run: cd ${{ github.workspace }}/simple-algorithms/counting-character && ./gradlew test | |
- name: Execute counting uppercase | |
run: cd ${{ github.workspace }}/simple-algorithms/counting-uppercase && ./gradlew test | |
- name: Execute create phone number | |
run: cd ${{ github.workspace }}/simple-algorithms/create-phone-number && ./gradlew test | |
- name: Execute credit card mask | |
run: cd ${{ github.workspace }}/simple-algorithms/credit-card-mask && ./gradlew test | |
- name: Execute digital sum | |
run: cd ${{ github.workspace }}/simple-algorithms/digital-sum && ./gradlew test | |
- name: Execute disemvowel trolls | |
run: cd ${{ github.workspace }}/simple-algorithms/disemvowel-trolls && ./gradlew test | |
- name: Execute electronic shop | |
run: cd ${{ github.workspace }}/simple-algorithms/electronic-shop && ./gradlew test | |
- name: Execute find the odd | |
run: cd ${{ github.workspace }}/simple-algorithms/find-the-odd && ./gradlew test | |
- name: Execute hey you | |
run: cd ${{ github.workspace }}/simple-algorithms/hey-you && ./gradlew test | |
- name: Execute longest substring | |
run: cd ${{ github.workspace }}/simple-algorithms/longest-substring && ./gradlew test | |
- name: Execute odd or even | |
run: cd ${{ github.workspace }}/simple-algorithms/odd-or-even && ./gradlew test | |
- name: Execute pair maker | |
run: cd ${{ github.workspace }}/simple-algorithms/pair-maker && ./gradlew test | |
- name: Execute parentheses balance | |
run: cd ${{ github.workspace }}/simple-algorithms/parentheses-balance && ./gradlew test | |
- name: Execute sock merchant | |
run: cd ${{ github.workspace }}/simple-algorithms/sock-merchant && ./gradlew test | |
- name: Execute sort the odd | |
run: cd ${{ github.workspace }}/simple-algorithms/sort-the-odd && ./gradlew test | |
- name: Execute square calculator | |
run: cd ${{ github.workspace }}/simple-algorithms/square-calculator && ./gradlew test | |
- name: Execute string compressor | |
run: cd ${{ github.workspace }}/simple-algorithms/string-compressor && ./gradlew test | |
- name: Execute twice as old | |
run: cd ${{ github.workspace }}/simple-algorithms/twice-as-old && ./gradlew test | |
- run: echo "π This job's status is ${{ job.status }}." |