Measure random missing data point #63403
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: Measure random missing data point | |
on: | |
schedule: | |
- cron: "*/30 * * * *" | |
workflow_dispatch: | |
jobs: | |
bench: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Use Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 14.x | |
- name: Yarn | |
uses: nick-invision/[email protected] | |
with: | |
max_attempts: 3 | |
timeout_minutes: 5 | |
command: yarn | |
- name: Find missing data point | |
id: missing | |
run: node bin/random-missing.js ${{ secrets.GITHUB_TOKEN }} 3 | |
- name: Print Result | |
run: echo ${{ steps.missing.outputs.case }} ${{ steps.missing.outputs.scenario }} ${{ steps.missing.outputs.date }} | |
- name: Yarn Cache Dir | |
id: yarn-cache-dir-path | |
run: echo "::set-output name=dir::$(yarn cache dir)" | |
- name: Yarn Cache | |
uses: actions/cache@v1 | |
with: | |
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | |
key: yarn-${{ steps.missing.outputs.case }}-${{ steps.missing.outputs.date }} | |
restore-keys: | | |
yarn-${{ steps.missing.outputs.case }}- | |
yarn- | |
- name: Measure | |
uses: nick-invision/[email protected] | |
with: | |
max_attempts: 3 | |
timeout_minutes: 30 | |
command: node bin/measure-mean-normalized.js ${{ steps.missing.outputs.case }} ${{ steps.missing.outputs.scenario }} ${{ steps.missing.outputs.date }} | |
- name: Setup git user | |
run: | | |
git config --global user.name "github-actions[bot]" | |
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
- name: Upload result | |
run: node bin/upload.js ${{ steps.missing.outputs.date }} ${{ secrets.GITHUB_TOKEN }} |