diff options
Diffstat (limited to '.github')
-rw-r--r-- | .github/ISSUE_TEMPLATE/config.yml | 6 | ||||
-rw-r--r-- | .github/workflows/stats.yml | 18 |
2 files changed, 16 insertions, 8 deletions
diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index 42096433b..c8e00bf68 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml | |||
@@ -1,11 +1,11 @@ | |||
1 | blank_issues_enabled: false | 1 | blank_issues_enabled: false |
2 | contact_links: | 2 | contact_links: |
3 | - name: 💬 IRC | ||
4 | url: https://kiwiirc.com/client/irc.freenode.net/#peertube | ||
5 | about: Chat with us via IRC for quick Q/A here | ||
6 | - name: 💬 Matrix | 3 | - name: 💬 Matrix |
7 | url: https://matrix.to/#/#peertube:matrix.org | 4 | url: https://matrix.to/#/#peertube:matrix.org |
8 | about: Chat with us via Matrix for quick Q/A here | 5 | about: Chat with us via Matrix for quick Q/A here |
6 | - name: 💬 IRC | ||
7 | url: https://kiwiirc.com/client/irc.freenode.net/#peertube | ||
8 | about: Chat with us via IRC for quick Q/A here | ||
9 | - name: 🤷💻🤦 Forum | 9 | - name: 🤷💻🤦 Forum |
10 | url: https://framacolibri.org/c/peertube | 10 | url: https://framacolibri.org/c/peertube |
11 | about: You can ask and answer other questions here | 11 | about: You can ask and answer other questions here |
diff --git a/.github/workflows/stats.yml b/.github/workflows/stats.yml index a2f0945b3..968eb9612 100644 --- a/.github/workflows/stats.yml +++ b/.github/workflows/stats.yml | |||
@@ -45,23 +45,31 @@ jobs: | |||
45 | branch-base: develop | 45 | branch-base: develop |
46 | bundlewatch-github-token: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }} | 46 | bundlewatch-github-token: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }} |
47 | 47 | ||
48 | - name: PeerTube code stats | ||
49 | if: github.event_name != 'pull_request' | ||
50 | run: | | ||
51 | wget "https://github.com/boyter/scc/releases/download/v3.0.0/scc-3.0.0-x86_64-unknown-linux.zip" | ||
52 | unzip "scc-3.0.0-x86_64-unknown-linux.zip" | ||
53 | ./scc --format=json --exclude-dir .git,node_modules,client/node_modules,client/dist,dist,yarn.lock,client/yarn.lock,client/src/locale,test1,test2,test3,client/src/assets/images,config,storage,server/tests/fixtures,support/openapi,.idea,.vscode,docker-volume,ffmpeg-3,ffmpeg-4 > ./scc.json | ||
54 | |||
48 | - name: PeerTube client stats | 55 | - name: PeerTube client stats |
49 | if: github.event_name != 'pull_request' | 56 | if: github.event_name != 'pull_request' |
50 | run: | | 57 | run: | |
51 | node dist/scripts/client-build-stats.js > client-build-stats.json | 58 | node dist/scripts/client-build-stats.js > client-build-stats.json |
52 | 59 | ||
53 | - name: PeerTube code stats | 60 | - name: PeerTube client lighthouse report |
54 | if: github.event_name != 'pull_request' | 61 | if: github.event_name != 'pull_request' |
55 | run: | | 62 | run: | |
56 | wget "https://github.com/boyter/scc/releases/download/v3.0.0/scc-3.0.0-x86_64-unknown-linux.zip" | 63 | sudo apt-get install chromium-browser |
57 | unzip "scc-3.0.0-x86_64-unknown-linux.zip" | 64 | sudo npm install -g lighthouse |
58 | ./scc --format=json --exclude-dir .git,node_modules,client/node_modules,client/dist,dist,yarn.lock,client/yarn.lock,client/src/locale,test1,test2,test3,client/src/assets/images,config,storage,server/tests/fixtures,support/openapi,.idea,.vscode,docker-volume,ffmpeg-3,ffmpeg-4 > ./scc.json | 65 | lighthouse --chrome-flags="--headless" https://peertube2.cpy.re --output=json --output-path=./lighthouse.json |
59 | 66 | ||
60 | - name: Display stats | 67 | - name: Display stats |
61 | if: github.event_name != 'pull_request' | 68 | if: github.event_name != 'pull_request' |
62 | run: | | 69 | run: | |
63 | cat client-build-stats.json | 70 | cat client-build-stats.json |
64 | cat scc.json | 71 | cat scc.json |
72 | cat lighthouse.json | ||
65 | 73 | ||
66 | - name: Upload stats | 74 | - name: Upload stats |
67 | if: github.event_name != 'pull_request' | 75 | if: github.event_name != 'pull_request' |
@@ -87,5 +95,5 @@ jobs: | |||
87 | 95 | ||
88 | if [ ! -z ${STATS_DEPLOYEMENT_KEY+x} ]; then | 96 | if [ ! -z ${STATS_DEPLOYEMENT_KEY+x} ]; then |
89 | echo "Uploading files" | 97 | echo "Uploading files" |
90 | scp client-build-stats.json scc.json ${STATS_DEPLOYEMENT_USER}@${STATS_DEPLOYEMENT_HOST}:../../web/peertube-stats; | 98 | scp lighthouse.json client-build-stats.json scc.json ${STATS_DEPLOYEMENT_USER}@${STATS_DEPLOYEMENT_HOST}:../../web/peertube-stats; |
91 | fi | 99 | fi |