Skip to content

Commit

Permalink
wip: testing git limits
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Perrotte committed Nov 6, 2019
1 parent 44dd9be commit ba0d2b1
Showing 1 changed file with 35 additions and 8 deletions.
43 changes: 35 additions & 8 deletions .github/workflows/benchmark-cli.yml
Expand Up @@ -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 }}
Expand All @@ -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"
Expand All @@ -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
Expand Down

0 comments on commit ba0d2b1

Please sign in to comment.