Skip to content

Commit

Permalink
Add pr stats action (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrilwanner committed Jul 23, 2020
1 parent 4a5054f commit d01e317
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 6 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/stats.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
on:
push:
branches: [ master ]
pull_request:
types: [ opened, synchronize ]

name: Stats

jobs:
stats:
name: Generate Stats
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- uses: cyrilwanner/bundlewatch-comment-action@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
bundlewatch-github-token: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }}
7 changes: 1 addition & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: CI

on:
push:
branches: [ master, feature/fix-ci ]
branches: [ master ]
pull_request:
branches: [ master ]

Expand All @@ -29,8 +29,3 @@ jobs:
run: npm test
- name: Lint
run: npm run lint
- name: Bundlewatch
run: npm run bundlewatch
if: matrix.node-version == '14.x'
env:
BUNDLEWATCH_GITHUB_TOKEN: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }}

0 comments on commit d01e317

Please sign in to comment.