-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (37 loc) · 974 Bytes
/
run.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
name: Run
on:
push:
branches:
- main
pull_request:
schedule:
- cron: 0 20 * * 6
workflow_dispatch:
jobs:
InstallAndRun:
name: Install and run
strategy:
matrix:
os: [ubuntu-latest, macOS-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install
shell: bash
run: |
sudo make -k -j install
hash -r
- name: Help
shell: bash
run: allgitstatus.sh
- name: Run without variables
shell: bash
run: allgitstatus.sh ./
- name: Run with specifying parameters for "git status"
shell: bash
run: GIT_STATUS_PARAMETERS="-s" allgitstatus.sh ./
- name: Test the message if no repositories are found
shell: bash
run: |
mkdir dir_without_no_git_repositories
allgitstatus.sh dir_without_no_git_repositories | grep -i "no git repositories are found"