Skip to content

Commit

Permalink
macos-workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
msimerson committed May 2, 2024
1 parent 3a8ebae commit e0a0113
Showing 1 changed file with 29 additions and 2 deletions.
31 changes: 29 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,36 @@ jobs:
secrets: inherit

ubuntu:
needs: [lint]
uses: haraka/.github/.github/workflows/ubuntu.yml@master

windows:
needs: [lint]
uses: haraka/.github/.github/workflows/windows.yml@master

macos:
needs: [get-lts]
runs-on: macos-latest
strategy:
matrix:
node-version: ${{ fromJson(needs.get-lts.outputs.active) }}
fail-fast: false
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
name: Node ${{ matrix.node-version }} on macos-latest
with:
node-version: ${{ matrix.node-version }}
- name: install Redis
run: |
brew install redis
brew services start redis
- run: npm install
- run: npm test

get-lts:
runs-on: macos-latest
steps:
- id: get
uses: msimerson/node-lts-versions@v1
outputs:
active: ${{ steps.get.outputs.active }}
lts: ${{ steps.get.outputs.lts }}

0 comments on commit e0a0113

Please sign in to comment.