aboutsummaryrefslogtreecommitdiffhomepage
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/ISSUE_TEMPLATE/config.yml6
-rw-r--r--.github/workflows/stats.yml18
-rw-r--r--.github/workflows/test.yml2
3 files changed, 17 insertions, 9 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 @@
1blank_issues_enabled: false 1blank_issues_enabled: false
2contact_links: 2contact_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
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 442317ce2..a1edde1ef 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -44,7 +44,7 @@ jobs:
44 env: 44 env:
45 PGUSER: peertube 45 PGUSER: peertube
46 PGHOST: localhost 46 PGHOST: localhost
47 NODE_PENDING_JOB_WAIT: 500 47 NODE_PENDING_JOB_WAIT: 250
48 48
49 steps: 49 steps:
50 - uses: actions/checkout@v2 50 - uses: actions/checkout@v2