|
6 | 6 | pull_request: |
7 | 7 | branches: [main] |
8 | 8 | jobs: |
9 | | - Explore-GitHub-Actions: |
| 9 | + Explore-Scripts: |
10 | 10 | runs-on: ubuntu-latest |
11 | 11 | steps: |
12 | 12 | - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." |
13 | 13 | - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" |
14 | 14 | - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." |
| 15 | + |
15 | 16 | - name: Check out repository code |
16 | 17 | uses: actions/checkout@v4 |
17 | 18 | - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." |
18 | 19 | - run: echo "🖥️ The workflow is now ready to test your code on the runner." |
| 20 | + |
19 | 21 | - name: List files in the repository |
20 | 22 | run: | |
21 | 23 | ls ${{ github.workspace }} |
22 | 24 | - run: echo "🍏 This job's status is ${{ job.status }}." |
23 | | - Test-Descriptive-Statistics: |
24 | | - runs-on: ubuntu-latest |
25 | | - steps: |
26 | | - - run: echo "This job tests exercise problem in DescriptiveStatistics directory " |
27 | | - - name: Check out repository code |
28 | | - uses: actions/checkout@v4 |
29 | | - - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." |
30 | | - - run: echo "🖥️ The workflow is now ready to test your code on the runner." |
| 25 | + |
31 | 26 | - name: List files in the repository |
32 | 27 | run: | |
33 | | - echo "Listing all files in DescriptiveStatistics of the workspace directory " |
34 | | - find ${{ github.workspace }} -mindepth 2 -type f |
| 28 | + TARGET_FOLDER = "${{ github.workspace }}/DescriptiveStatistics" |
| 29 | + echo "Listing all files in $TARGET_FOLDER of the workspace directory " |
| 30 | + find $TARGET_FOLDER -mindepth 2 -type f -name "*.py" |
35 | 31 | - run: echo "🍏 This job's status is ${{ job.status }}." |
0 commit comments