v4.0.0-alpha.122 #268
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: "20" | |
- 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: "20" | |
- 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 |