From 98671657defd036f56993ffa3ed1d64ba60d7113 Mon Sep 17 00:00:00 2001 From: Evan Bacon Date: Fri, 21 Jan 2022 12:50:30 -0700 Subject: [PATCH] added node matrix --- .github/workflows/test.yml | 18 +++++++++++++++++- .github/workflows/test_windows.yml | 18 +++++++++++++++++- 2 files changed, 34 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 050f0e6993..4916c377d4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 @@ -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 diff --git a/.github/workflows/test_windows.yml b/.github/workflows/test_windows.yml index aff2cd207b..4a4bbbc08b 100644 --- a/.github/workflows/test_windows.yml +++ b/.github/workflows/test_windows.yml @@ -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 @@ -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