Skip to content

Commit

Permalink
ci: run tests on different os
Browse files Browse the repository at this point in the history
  • Loading branch information
icelam committed Aug 9, 2023
1 parent 24fe767 commit a43549a
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ on:
jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x, 18.x, 20.x]
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
env:
HUSKY: 0
steps:
Expand All @@ -28,7 +29,15 @@ jobs:
node-version: ${{ matrix.node-version }}
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
run: |
if [ "$RUNNER_OS" == "Windows" ]; then
echo "dir=$(yarn cache dir)" >> $env:GITHUB_OUTPUT
else
echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
fi
- name: Debug
run: |
echo "${{ steps.yarn-cache-dir-path.outputs.dir }}"
- name: Restore yarn cache
uses: actions/cache@v3
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
Expand Down

0 comments on commit a43549a

Please sign in to comment.