Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

Commit

Permalink
added node matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanBacon committed Jan 21, 2022
1 parent 22daa25 commit 9867165
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 2 deletions.
18 changes: 17 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,16 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: ♻️ Restore workspace node modules
uses: actions/cache@v2
id: node-modules-cache
with:
path: |
# See "workspaces" → "packages" in the root package.json for the source of truth of
# which node_modules are affected by the root yarn.lock
node_modules
packages/*/node_modules
key: ${{ runner.os }}-modules-v2-${{ hashFiles('yarn.lock') }}
- run: yarn install --frozen-lockfile --check-files
- run: yarn lerna run prepare --stream
- run: yarn lint --max-warnings=0
Expand Down Expand Up @@ -88,12 +98,18 @@ jobs:
needs: build
strategy:
fail-fast: false
name: Expo CLI E2E
matrix:
node: ['12', '14']
name: Expo CLI E2E on Node ${{ matrix.node }}
steps:
- uses: actions/cache@v2
with:
path: '*'
key: v2-${{ github.sha }}-${{ matrix.node }}
- name: Set up Node
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
# Test building an Expo web project
- name: Test Expo CLI E2E
working-directory: packages/expo-cli
Expand Down
18 changes: 17 additions & 1 deletion .github/workflows/test_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,16 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: ♻️ Restore workspace node modules
uses: actions/cache@v2
id: node-modules-cache
with:
path: |
# See "workspaces" → "packages" in the root package.json for the source of truth of
# which node_modules are affected by the root yarn.lock
node_modules
packages/*/node_modules
key: ${{ runner.os }}-modules-v2-${{ hashFiles('yarn.lock') }}
- run: yarn install --frozen-lockfile --check-files
- run: yarn lerna run prepare --stream
- run: yarn lint --max-warnings=0
Expand Down Expand Up @@ -76,12 +86,18 @@ jobs:
needs: build
strategy:
fail-fast: false
name: Expo CLI E2E
matrix:
node: ['12', '14']
name: Expo CLI E2E on Node ${{ matrix.node }}
steps:
- uses: actions/cache@v2
with:
path: '*'
key: v2-${{ github.sha }}-${{ matrix.node }}
- name: Set up Node
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
# Test building an Expo web project
- name: Test Expo CLI E2E
working-directory: packages/expo-cli
Expand Down

0 comments on commit 9867165

Please sign in to comment.