Test mac os (#53)

* add: test on MacOS

Add test for MacOS in Github action

Maybe see this to add test for FreeBSD :
https://github.com/marketplace/actions/freebsd-vm

* add: log to test

adding log to the test for better understanding

* fix: shellcheck

remove the yellow color that is unused in the test

* fix: fail on lower-casting

the `"${variable,,}"` seam to not work on macOS so y remove it for the `skip_hardlink_flag` because it's always lowercase

* fix: macOS

remove all the lower-case casting

* fix(perf): going to `stat` remove `lsattr` macOS

The command `lsattr` is not supported on macOS so I have remove it
switch to `stat` instead of `ls` for better performance and no subshell
use of parameter expansion with  `%` in place of `awk` for performance and no subshell

* fix: forgot to remove variable
This commit is contained in:
meo
2024-12-17 00:33:35 +01:00
committed by GitHub
parent 922531829e
commit bd8d447150
3 changed files with 78 additions and 33 deletions

View File

@@ -9,11 +9,20 @@ on:
branches: [ master ]
jobs:
shellcheck:
name: Test
linuxTest:
name: Test on Linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run testing script
run: ./testing.sh
macOsTest:
name: Test on macOS
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Run testing script on macOS
run: ./testing.sh