From 9953a10d88edfcfd5ce2998f1f7b5f4e795b5c23 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Tue, 24 Jan 2023 10:08:04 +0100 Subject: workflows/ci: test on macOS --- .github/workflows/ci.yml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5c0cd21..f4954c4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,10 +7,23 @@ on: jobs: test: - runs-on: ubuntu-latest - name: Test + strategy: + matrix: + os: [ubuntu-latest, macos-latest] + runs-on: '${{ matrix.os }}' + name: 'Test / ${{ matrix.os }}' steps: - name: Checkout uses: actions/checkout@v3 + + - name: Install dependencies + run: | + brew install bash coreutils findutils + echo "$(brew --prefix)/opt/coreutils/libexec/gnubin" >> "$GITHUB_PATH" + echo "$(brew --prefix)/opt/findutils/libexec/gnubin" >> "$GITHUB_PATH" + if: runner.os == 'macOS' + # Is it even macOS anymore? It is for me. I really am too lazy to deal + # with ancient utilities that come with the actual macOS. + - name: Test run: ./test/test.sh -- cgit v1.2.3