chore(deps): update dependency @angular/core to v21 #282
This file contains hidden or 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: Tests | |
| on: | |
| push | |
| jobs: | |
| tests-pre-commit: | |
| runs-on: ubuntu-20.04 | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Install asdf | |
| uses: asdf-vm/actions/setup@v1 | |
| - name: Cache tools | |
| uses: actions/cache@v2 | |
| with: | |
| path: | | |
| /home/runner/.asdf | |
| key: ${{ runner.os }}-${{ hashFiles('**/.tool-versions') }} | |
| - name: Install required tools | |
| run: | | |
| asdf plugin-add mongodb https://github.com/junminahn/asdf-mongodb.git || true | |
| cat .tool-versions | cut -f 1 -d ' ' | xargs -n 1 asdf plugin-add || true | |
| asdf plugin-update --all | |
| # bash ~/.asdf/plugins/nodejs/bin/import-release-team-keyring | |
| asdf install | |
| asdf reshim | |
| - name: Get yarn cache directory path | |
| id: yarn-cache-dir-path | |
| run: echo "::set-output name=dir::$(yarn cache dir)" | |
| - uses: actions/cache@v2 | |
| id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) | |
| with: | |
| path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | |
| key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-yarn- | |
| - name: Start mongod as a Daemon | |
| run: | | |
| mkdir -p ~/mongo/data/db | |
| mongod --fork --dbpath ~/mongo/data/db --logpath ~/mongo/mongod.log | |
| - name: Run unit tests | |
| run: | | |
| yarn | |
| yarn bootstrap | |
| yarn test | |
| - uses: actions/setup-python@v2 | |
| with: | |
| python-version: 3.x | |
| - name: Rerun Pre-Commit Hooks on CI | |
| run: | | |
| pip install -r requirements.txt | |
| pre-commit run --all-files | |
| commitlint: | |
| runs-on: ubuntu-20.04 | |
| steps: | |
| - uses: actions/checkout@v2 | |
| with: | |
| fetch-depth: 0 | |
| - uses: wagoid/commitlint-github-action@v2 |