Skip to content

get repository working with up-to-date deps #264

get repository working with up-to-date deps

get repository working with up-to-date deps #264

Workflow file for this run

name: CI
on:
push:
branches: [ master ]
jobs:
prepare-yarn-cache:
name: Prepare Cache
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "16.14.2"
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
- uses: actions/cache@v3
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: yarn-${{ hashFiles('yarn.lock') }}
- name: Check Yarn dedupe
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: |
yarn dedupe --check
- name: Check or update Yarn cache
env:
YARN_ENABLE_SCRIPTS: false
YARN_NODE_LINKER: pnp
run: |
yarn install --immutable --mode=skip-build
build:
name: Build Packages
runs-on: ubuntu-latest
needs: prepare-yarn-cache
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "16"
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
- uses: actions/cache@v3
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: yarn-${{ hashFiles('yarn.lock') }}
- name: Install dependencies
run: |
yarn install --immutable --mode=skip-build
yarn ./nm-packages/engine.dashboard install --immutable --mode=skip-build
- name: Build
run: |
yarn ./packages/engine.utils run build
yarn build --exclude @c11/engine.utils
- name: Test
run: yarn test
- name: Upload coverage report
uses: codecov/codecov-action@v1