-
Notifications
You must be signed in to change notification settings - Fork 2
67 lines (67 loc) · 3.73 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Running Tests
on:
push:
branches: [ "main" ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Set up JDK 21
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 }}."