diff --git a/.github/workflows/benchmark-cli.yml b/.github/workflows/benchmark-cli.yml index 099be45..2265c39 100644 --- a/.github/workflows/benchmark-cli.yml +++ b/.github/workflows/benchmark-cli.yml @@ -9,13 +9,15 @@ jobs: strategy: matrix: - os: [ubuntu-latest, macOS-latest] - node-version: [10.x, 12.x] + # os: [ubuntu-latest, macOS-latest] + os: [ubuntu-latest] + # node-version: [10.x, 12.x] + node-version: [10.x] runs-on: ${{ matrix.os }} steps: - - name: checkout/benchmarks + - name: checkout/npm/benchmarks uses: actions/checkout@v1 with: path: ${{ env.RUNNER_WORKSPACE }} @@ -35,27 +37,28 @@ jobs: - name: Install benchmark deps run: | cd "${GITHUB_WORKSPACE}" - npm install --production + echo "PWD: $(pwd)" + npm --loglevel=silly install --production - name: Unlink npm/cli if: github.event.client_payload.repo == 'cli' run: | cd "${RUNNER_WORKSPACE}/${{ github.event.client_payload.repo }}" - pwd + echo "PWD: $(pwd)" sudo node bin/npm-cli.js rm npm -g -f - name: Globally link npm/cli if: github.event.client_payload.repo == 'cli' run: | cd "${RUNNER_WORKSPACE}/${{ github.event.client_payload.repo }}" - pwd + echo "PWD: $(pwd)" sudo node bin/npm-cli.js link -f - name: Validate link npm/cli if: github.event.client_payload.repo == 'cli' run: | cd "${RUNNER_WORKSPACE}/${{ github.event.client_payload.repo }}" - pwd + echo "PWD: $(pwd)" echo "Command Path: $(which npm)" echo "Global node_modules: " ls -l "$(dirname $(which npm))/../lib/node_modules" @@ -79,8 +82,32 @@ jobs: - name: Commit Results # if: contains(github.event.action, 'push') + # if: github.event.action == 'push' && matrix.os == 'ubuntu-latest' && matrix.node-verison == '10.x' if: github.event.action == 'push' - run: echo "Committing results..." + env: + REPO: ${{ github.event.client_payload.repo }} + OWNER: ${{ github.event.client_payload.owner }} + run: | + set -x + cd "${GITHUB_WORKSPACE}" + echo "OS: ${{ matrix.os }}" + echo "NODE-VERSION: ${{ matrix.node-version }}" + echo "Committing results..." + echo "PWD: $(pwd)" + git remote -v + git status + git checkout -b master --track origin/master + git config user.email "ops+npm-deploy-user@npmjs.com" + git config user.name "beep boop I am a robot" + git config gc.auto 0 + # git config --get-all http.https://github.com/npm/benchmarks.extraheader + # git config --get-all http.proxy + git config http.https://github.com/npm/benchmarks.extraheader "" + git config --list + git commit -m "wip: empty commit" --allow-empty + git log --oneline -3 + cat .git/config + # git -c http.extraheader="AUTHORIZATION: basic ${{ github.token }}" push origin master # TODO: remove this step - name: Env