FreeBSD fix and test (#55)

* add: test on freebsd

* test fix vm

* fix: transform to lowercase

transform the `OSTYPE` to a lowercase and store it inside `OSName`

* add: caching of the vm
This commit is contained in:
meo
2025-01-06 00:43:43 +01:00
committed by GitHub
parent bd8d447150
commit 393cbe2a12
2 changed files with 34 additions and 7 deletions

View File

@@ -25,4 +25,29 @@ jobs:
- uses: actions/checkout@v4
- name: Run testing script on macOS
run: ./testing.sh
run: ./testing.sh
FreeBSDTest:
name: Test on FreeBSD
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cache dependencies
uses: actions/cache@v3
with:
path: ~/.cache
key: ${{ runner.os }}-cache-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-cache-
- name: Test in FreeBSD
id: test
uses: vmactions/freebsd-vm@v1
with:
usesh: true
prepare: |
pkg install -y bash
run: |
./testing.sh