From e2303c15e4219a01468b72b6b133cd618312a885 Mon Sep 17 00:00:00 2001 From: Supriya S Date: Wed, 26 May 2021 10:14:52 +0530 Subject: [PATCH] change workflows --- .github/workflows/build.yml | 12 +++++++++++ .github/workflows/integration.yml | 36 ------------------------------- .github/workflows/lint.yml | 13 ----------- 3 files changed, 12 insertions(+), 49 deletions(-) delete mode 100644 .github/workflows/integration.yml delete mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7b94526e804..968d684fa08 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,6 +7,18 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 + - name: Cache node modules + uses: actions/cache@v2 + env: + cache-name: cache-node-modules + with: + # npm cache files are stored in `~/.npm` on Linux/macOS + path: ~/.npm + key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-build-${{ env.cache-name }}- + ${{ runner.os }}-build- + ${{ runner.os }}- - name: Install run: yarn --no-progress --non-interactive --no-lockfile - name: Build diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml deleted file mode 100644 index 1249f20532f..00000000000 --- a/.github/workflows/integration.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: Integration Tests - -on: - push: - branches: - - master - pull_request: - branches: - - master - -jobs: - job: - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: ['ubuntu-latest', 'macos-latest', 'windows-latest'] - node: ['10', '12', '14'] - steps: - - uses: actions/checkout@v2 - - name: Setup node - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node }} - - name: Cache dependencies - id: cache - uses: actions/cache@v2 - with: - path: | - node_modules - */*/node_modules - key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock', './yarn.lock') }} - - name: Install packages - if: steps.cache.outputs.cache-hit != 'true' - run: yarn --frozen-lockfile --prefer-offline - - name: Run integration tests - run: yarn test:integration diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml deleted file mode 100644 index a2e7567d1e1..00000000000 --- a/.github/workflows/lint.yml +++ /dev/null @@ -1,13 +0,0 @@ -name: Lint - -on: [push] - -jobs: - lint: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - - name: Install - run: yarn --no-progress --non-interactive --no-lockfile - - name: Alex - run: yarn alex