diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index eb7b284b656..387c87a8b5a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,16 +19,20 @@ jobs: - uses: actions/setup-node@v1 with: node-version: 12 + - uses: actions/checkout@v2 + - uses: actions/cache@v2 id: cache-deps with: path: | node_modules */*/node_modules - key: 2-${{ runner.os }}-node12-${{ hashFiles('**/package-lock.json') }} + key: ${{ runner.os }}-node12-${{ hashFiles('**/package-lock.json') }} + - run: bash ./scripts/install.sh if: steps.cache-deps.outputs.cache-hit != 'true' + - run: bash ./scripts/ci.sh unit: runs-on: ubuntu-latest @@ -41,16 +45,20 @@ jobs: - uses: actions/setup-node@v1 with: node-version: ${{ matrix.node }} + - uses: actions/checkout@v2 + - uses: actions/cache@v2 id: cache-deps with: path: | node_modules */*/node_modules - key: 2-${{ runner.os }}-node${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }} + key: ${{ runner.os }}-node${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }} + - run: bash ./scripts/install.sh if: steps.cache-deps.outputs.cache-hit != 'true' + - run: bash ./scripts/ci.sh e2e: runs-on: ubuntu-latest @@ -72,16 +80,20 @@ jobs: with: node-version: 12 - uses: actions/checkout@v2 + - uses: actions/cache@v2 id: cache-deps with: path: | node_modules */*/node_modules - key: 2-${{ runner.os }}-node12-${{ hashFiles('**/package-lock.json') }} + key: ${{ runner.os }}-node12-${{ hashFiles('**/package-lock.json') }} + - run: bash ./scripts/install.sh if: steps.cache-deps.outputs.cache-hit != 'true' + - run: bash ./scripts/ci.sh + - name: Send coverage reports to Coveralls if: env.TEST == 'unit_and_e2e_clients' uses: coverallsapp/github-action@master