message: finer-grained artifacts experiment
diff: @@ -3,7 +3,7 @@ name: gh-actions-test
  on: [push, pull_request]
  jobs:
  - fetch-dependencies-and-build:
  + fetch-dependencies:
  runs-on: ubuntu-latest
  strategy:
  matrix:
  @@ -17,23 +17,39 @@ jobs:
  - name: Cache node modules
  uses: actions/cache@v2
  with:
  - path: ~/node_modules
  + path: ./node_modules
  key: cached_node_modules_${{ hashFiles('**/yarn.lock') }}
  restore-keys: cached_node_modules_
  - run: yarn --prefer-offline --frozen-lockfile --ignore-engines
  + - uses: actions/upload-artifact@v2
  + with:
  + name: node_modules
  + path: ./node_modules
  +
  + build:
  + runs-on: ubuntu-latest
  + needs: fetch-dependencies
  + steps:
  + - uses: actions/checkout@v2
  + - uses: actions/download-artifact@v2
  + with:
  + name: node_modules
  + path: ./node_modules
  - run: yarn build:test
  - - uses: actions/upload-artifact@v1
  + - uses: actions/upload-artifact@v2
  with:
  - name: current-directory
  - path: .
  + name: dist
  + path: ./dist
  lint:
  runs-on: ubuntu-latest
  - needs: fetch-dependencies-and-build
  + needs: fetch-dependencies
  steps:
  + - uses: actions/checkout@v2
  - uses: actions/download-artifact@v2
  with:
  - name: current-directory
  + name: node_modules
  + path: ./node_modules
  - run: yarn lint:es
  - run: yarn lint:ts
  - run: yarn lint:style
  @@ -41,10 +57,16 @@ jobs:
  test:
  runs-on: ubuntu-latest
  - needs: fetch-dependencies-and-build
  + needs: build
  steps:
  + - uses: actions/checkout@v2
  + - uses: actions/download-artifact@v2
  + with:
  + name: dist
  + path: ./dist
  - uses: actions/download-artifact@v2
  with:
  - name: current-directory
  + name: node_modules
  + path: ./node_modules
  - run: yarn test:cover --path ./dist
  - run: cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
  