vellum metrics #134
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: vellum metrics | |
on: | |
pull_request: | |
branches: | |
- master | |
schedule: | |
- cron: "0 0 * * *" # daily | |
jobs: | |
metrics: | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 60 | |
env: | |
REPO: vellum | |
DATADOG_API_KEY: ${{ secrets.DATADOG_API_KEY }} | |
DATADOG_APP_KEY: ${{ secrets.DATADOG_APP_KEY }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 14 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: | | |
3.9 | |
- name: Install dependencies | |
run: | | |
yarn_version=$(grep -Eo '^yarn@[^:]+' ./yarn.lock) | |
echo "lock file requires: $yarn_version" | |
npm install "$yarn_version" | |
yarn install | |
- name: Install dependency-metrics | |
run: pip install dependency-metrics | |
- name: run metrics for yarn | |
run: metrics yarn --send |