Skip to content

Commit

Permalink
merge(#4535): from hexojs/actions-flamegraph
Browse files Browse the repository at this point in the history
  • Loading branch information
SukkaW committed Sep 16, 2020
2 parents b69e685 + c7c3db2 commit d445b68
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 23 deletions.
31 changes: 30 additions & 1 deletion .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node-version: ['10.x', '12.x', '14.x']
node-version: ['10', '12', '14']
fail-fast: false
steps:
- uses: actions/checkout@v2
Expand All @@ -33,3 +33,32 @@ jobs:
run: npm install --silent
- name: Running benchmark
run: node test/benchmark.js --benchmark
profiling:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node-version: ['10', '12', '14']
fail-fast: false
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Cache NPM dependencies
uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.OS }}-${{ matrix.node-version }}-npm-cache
- name: Install dependencies
run: npm install --silent
- name: Running profiling
run: node test/benchmark.js --profiling
- name: Publish flamegraph to https://${{ github.sha }}-${{ matrix.node-version }}-hexo.surge.sh/flamegraph.html
uses: dswistowski/surge-sh-action@v1
with:
domain: ${{ github.sha }}-${{ matrix.node-version }}-hexo.surge.sh
project: ./.tmp-hexo-theme-unit-test/0x/
login: ${{ secrets.SURGE_LOGIN }}
token: ${{ secrets.SURGE_TOKEN }}
22 changes: 0 additions & 22 deletions .travis.yml

This file was deleted.

0 comments on commit d445b68

Please sign in to comment.