99
1010 strategy :
1111 matrix :
12- os : [ubuntu-latest, macOS-latest]
13- node-version : [10.x, 12.x]
12+ # os: [ubuntu-latest, macOS-latest]
13+ os : [ubuntu-latest]
14+ # node-version: [10.x, 12.x]
15+ node-version : [10.x]
1416
1517 runs-on : ${{ matrix.os }}
1618
1719 steps :
18- - name : checkout/benchmarks
20+ - name : checkout/npm/ benchmarks
1921 uses : actions/checkout@v1
2022 with :
2123 path : ${{ env.RUNNER_WORKSPACE }}
@@ -35,27 +37,28 @@ jobs:
3537 - name : Install benchmark deps
3638 run : |
3739 cd "${GITHUB_WORKSPACE}"
38- npm install --production
40+ echo "PWD: $(pwd)"
41+ npm --loglevel=silly install --production
3942
4043 - name : Unlink npm/cli
4144 if : github.event.client_payload.repo == 'cli'
4245 run : |
4346 cd "${RUNNER_WORKSPACE}/${{ github.event.client_payload.repo }}"
44- pwd
47+ echo "PWD: $( pwd)"
4548 sudo node bin/npm-cli.js rm npm -g -f
4649
4750 - name : Globally link npm/cli
4851 if : github.event.client_payload.repo == 'cli'
4952 run : |
5053 cd "${RUNNER_WORKSPACE}/${{ github.event.client_payload.repo }}"
51- pwd
54+ echo "PWD: $( pwd)"
5255 sudo node bin/npm-cli.js link -f
5356
5457 - name : Validate link npm/cli
5558 if : github.event.client_payload.repo == 'cli'
5659 run : |
5760 cd "${RUNNER_WORKSPACE}/${{ github.event.client_payload.repo }}"
58- pwd
61+ echo "PWD: $( pwd)"
5962 echo "Command Path: $(which npm)"
6063 echo "Global node_modules: "
6164 ls -l "$(dirname $(which npm))/../lib/node_modules"
7982
8083 - name : Commit Results
8184 # if: contains(github.event.action, 'push')
85+ # if: github.event.action == 'push' && matrix.os == 'ubuntu-latest' && matrix.node-verison == '10.x'
8286 if : github.event.action == 'push'
83- run : echo "Committing results..."
87+ env :
88+ REPO : ${{ github.event.client_payload.repo }}
89+ OWNER : ${{ github.event.client_payload.owner }}
90+ run : |
91+ set -x
92+ cd "${GITHUB_WORKSPACE}"
93+ echo "OS: ${{ matrix.os }}"
94+ echo "NODE-VERSION: ${{ matrix.node-version }}"
95+ echo "Committing results..."
96+ echo "PWD: $(pwd)"
97+ git remote -v
98+ git status
99+ git checkout -b master --track origin/master
100+ git config user.email "[email protected] " 101+ git config user.name "beep boop I am a robot"
102+ git config gc.auto 0
103+ # git config --get-all http.https://github.com/npm/benchmarks.extraheader
104+ # git config --get-all http.proxy
105+ git config --list
106+ git commit -m "wip: empty commit" --allow-empty
107+ git log --oneline -3
108+ cat .git/config
109+ # git -c http.extraheader="AUTHORIZATION: basic ${{ github.token }}" push origin master
84110
85111 # TODO: remove this step
86112 - name : Env
0 commit comments