Skip to content

Adding solution

Adding solution #76

Workflow file for this run

name: Running Tests
on:
push:
branches: [ "main" ]
jobs:
test:
runs-on: ubuntu-latest
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 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 }}."