Skip to content

Commit fca682b

Browse files
committed
chore: update ci
1 parent d88e0e7 commit fca682b

8 files changed

Lines changed: 295 additions & 43 deletions

File tree

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Getting Help on IPFS
4+
url: https://ipfs.io/help
5+
about: All information about how and where to get help on IPFS.
6+
- name: IPFS Official Forum
7+
url: https://discuss.ipfs.io
8+
about: Please post general questions, support requests, and discussions here.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: Open an issue
3+
about: Only for actionable issues relevant to this repository.
4+
title: ''
5+
labels: need/triage
6+
assignees: ''
7+
8+
---
9+
<!--
10+
Hello! To ensure this issue is correctly addressed as soon as possible by the IPFS team, please try to make sure:
11+
12+
- This issue is relevant to this repository's topic or codebase.
13+
14+
- A clear description is provided. It should includes as much relevant information as possible and clear scope for the issue to be actionable.
15+
16+
FOR GENERAL DISCUSSION, HELP OR QUESTIONS, please see the options at https://ipfs.io/help or head directly to https://discuss.ipfs.io.
17+
18+
(you can delete this section after reading)
19+
-->

.github/config.yml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# Configuration for welcome - https://github.com/behaviorbot/welcome
2+
3+
# Configuration for new-issue-welcome - https://github.com/behaviorbot/new-issue-welcome
4+
# Comment to be posted to on first time issues
5+
newIssueWelcomeComment: >
6+
Thank you for submitting your first issue to this repository! A maintainer
7+
will be here shortly to triage and review.
8+
9+
In the meantime, please double-check that you have provided all the
10+
necessary information to make this process easy! Any information that can
11+
help save additional round trips is useful! We currently aim to give
12+
initial feedback within **two business days**. If this does not happen, feel
13+
free to leave a comment.
14+
15+
Please keep an eye on how this issue will be labeled, as labels give an
16+
overview of priorities, assignments and additional actions requested by the
17+
maintainers:
18+
19+
- "Priority" labels will show how urgent this is for the team.
20+
- "Status" labels will show if this is ready to be worked on, blocked, or in progress.
21+
- "Need" labels will indicate if additional input or analysis is required.
22+
23+
Finally, remember to use https://discuss.ipfs.io if you just need general
24+
support.
25+
26+
# Configuration for new-pr-welcome - https://github.com/behaviorbot/new-pr-welcome
27+
# Comment to be posted to on PRs from first time contributors in your repository
28+
newPRWelcomeComment: >
29+
Thank you for submitting this PR!
30+
31+
A maintainer will be here shortly to review it.
32+
33+
We are super grateful, but we are also overloaded! Help us by making sure
34+
that:
35+
36+
* The context for this PR is clear, with relevant discussion, decisions
37+
and stakeholders linked/mentioned.
38+
39+
* Your contribution itself is clear (code comments, self-review for the
40+
rest) and in its best form. Follow the [code contribution
41+
guidelines](https://github.com/ipfs/community/blob/master/CONTRIBUTING.md#code-contribution-guidelines)
42+
if they apply.
43+
44+
Getting other community members to do a review would be great help too on
45+
complex PRs (you can ask in the chats/forums). If you are unsure about
46+
something, just leave us a comment.
47+
48+
Next steps:
49+
50+
* A maintainer will triage and assign priority to this PR, commenting on
51+
any missing things and potentially assigning a reviewer for high
52+
priority items.
53+
54+
* The PR gets reviews, discussed and approvals as needed.
55+
56+
* The PR is merged by maintainers when it has been approved and comments addressed.
57+
58+
We currently aim to provide initial feedback/triaging within **two business
59+
days**. Please keep an eye on any labelling actions, as these will indicate
60+
priorities and status of your contribution.
61+
62+
We are very grateful for your contribution!
63+
64+
65+
# Configuration for first-pr-merge - https://github.com/behaviorbot/first-pr-merge
66+
# Comment to be posted to on pull requests merged by a first time user
67+
# Currently disabled
68+
#firstPRMergeComment: ""

.github/dependabot.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: npm
4+
directory: "/"
5+
schedule:
6+
interval: daily
7+
time: "10:00"
8+
open-pull-requests-limit: 10

.github/workflows/automerge.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# File managed by web3-bot. DO NOT EDIT.
2+
# See https://github.com/protocol/.github/ for details.
3+
4+
name: Automerge
5+
on: [ pull_request ]
6+
7+
jobs:
8+
automerge:
9+
uses: protocol/.github/.github/workflows/automerge.yml@master
10+
with:
11+
job: 'automerge'
Lines changed: 155 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,155 @@
1+
# File managed by web3-bot. DO NOT EDIT.
2+
# See https://github.com/protocol/.github/ for details.
3+
4+
name: test & maybe release
5+
on:
6+
push:
7+
branches:
8+
- master # with #262 - ${{{ github.default_branch }}}
9+
pull_request:
10+
branches:
11+
- master # with #262 - ${{{ github.default_branch }}}
12+
13+
jobs:
14+
15+
check:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v2
19+
- uses: actions/setup-node@v2
20+
with:
21+
node-version: lts/*
22+
- uses: ipfs/aegir/actions/cache-node-modules@master
23+
- run: npm run --if-present lint
24+
- run: npm run --if-present dep-check
25+
26+
test-node:
27+
needs: check
28+
runs-on: ${{ matrix.os }}
29+
strategy:
30+
matrix:
31+
os: [windows-latest, ubuntu-latest, macos-latest]
32+
node: [16]
33+
fail-fast: true
34+
steps:
35+
- uses: actions/checkout@v2
36+
- uses: actions/setup-node@v2
37+
with:
38+
node-version: ${{ matrix.node }}
39+
- uses: ipfs/aegir/actions/cache-node-modules@master
40+
- run: npm run --if-present test:node
41+
- uses: codecov/codecov-action@81cd2dc8148241f03f5839d295e000b8f761e378 # v3.1.0
42+
with:
43+
directory: ./.nyc_output
44+
flags: node
45+
46+
test-chrome:
47+
needs: check
48+
runs-on: ubuntu-latest
49+
steps:
50+
- uses: actions/checkout@v2
51+
- uses: actions/setup-node@v2
52+
with:
53+
node-version: lts/*
54+
- uses: ipfs/aegir/actions/cache-node-modules@master
55+
- run: npm run --if-present test:chrome
56+
- uses: codecov/codecov-action@81cd2dc8148241f03f5839d295e000b8f761e378 # v3.1.0
57+
with:
58+
directory: ./.nyc_output
59+
flags: chrome
60+
61+
test-chrome-webworker:
62+
needs: check
63+
runs-on: ubuntu-latest
64+
steps:
65+
- uses: actions/checkout@v2
66+
- uses: actions/setup-node@v2
67+
with:
68+
node-version: lts/*
69+
- uses: ipfs/aegir/actions/cache-node-modules@master
70+
- run: npm run --if-present test:chrome-webworker
71+
- uses: codecov/codecov-action@81cd2dc8148241f03f5839d295e000b8f761e378 # v3.1.0
72+
with:
73+
directory: ./.nyc_output
74+
flags: chrome-webworker
75+
76+
test-firefox:
77+
needs: check
78+
runs-on: ubuntu-latest
79+
steps:
80+
- uses: actions/checkout@v2
81+
- uses: actions/setup-node@v2
82+
with:
83+
node-version: lts/*
84+
- uses: ipfs/aegir/actions/cache-node-modules@master
85+
- run: npm run --if-present test:firefox
86+
- uses: codecov/codecov-action@81cd2dc8148241f03f5839d295e000b8f761e378 # v3.1.0
87+
with:
88+
directory: ./.nyc_output
89+
flags: firefox
90+
91+
test-firefox-webworker:
92+
needs: check
93+
runs-on: ubuntu-latest
94+
steps:
95+
- uses: actions/checkout@v2
96+
- uses: actions/setup-node@v2
97+
with:
98+
node-version: lts/*
99+
- uses: ipfs/aegir/actions/cache-node-modules@master
100+
- run: npm run --if-present test:firefox-webworker
101+
- uses: codecov/codecov-action@81cd2dc8148241f03f5839d295e000b8f761e378 # v3.1.0
102+
with:
103+
directory: ./.nyc_output
104+
flags: firefox-webworker
105+
106+
test-electron-main:
107+
needs: check
108+
runs-on: ubuntu-latest
109+
steps:
110+
- uses: actions/checkout@v2
111+
- uses: actions/setup-node@v2
112+
with:
113+
node-version: lts/*
114+
- uses: ipfs/aegir/actions/cache-node-modules@master
115+
- run: npx xvfb-maybe npm run --if-present test:electron-main
116+
- uses: codecov/codecov-action@81cd2dc8148241f03f5839d295e000b8f761e378 # v3.1.0
117+
with:
118+
directory: ./.nyc_output
119+
flags: electron-main
120+
121+
test-electron-renderer:
122+
needs: check
123+
runs-on: ubuntu-latest
124+
steps:
125+
- uses: actions/checkout@v2
126+
- uses: actions/setup-node@v2
127+
with:
128+
node-version: lts/*
129+
- uses: ipfs/aegir/actions/cache-node-modules@master
130+
- run: npx xvfb-maybe npm run --if-present test:electron-renderer
131+
- uses: codecov/codecov-action@81cd2dc8148241f03f5839d295e000b8f761e378 # v3.1.0
132+
with:
133+
directory: ./.nyc_output
134+
flags: electron-renderer
135+
136+
release:
137+
needs: [test-node, test-chrome, test-chrome-webworker, test-firefox, test-firefox-webworker, test-electron-main, test-electron-renderer]
138+
runs-on: ubuntu-latest
139+
if: github.event_name == 'push' && github.ref == 'refs/heads/master' # with #262 - 'refs/heads/${{{ github.default_branch }}}'
140+
steps:
141+
- uses: actions/checkout@v2
142+
with:
143+
fetch-depth: 0
144+
- uses: actions/setup-node@v2
145+
with:
146+
node-version: lts/*
147+
- uses: ipfs/aegir/actions/cache-node-modules@master
148+
- uses: ipfs/aegir/actions/docker-login@master
149+
with:
150+
docker-token: ${{ secrets.DOCKER_TOKEN }}
151+
docker-username: ${{ secrets.DOCKER_USERNAME }}
152+
- run: npm run --if-present release
153+
env:
154+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
155+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/stale.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Close and mark stale issue
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * *'
6+
7+
jobs:
8+
stale:
9+
10+
runs-on: ubuntu-latest
11+
permissions:
12+
issues: write
13+
pull-requests: write
14+
15+
steps:
16+
- uses: actions/stale@v3
17+
with:
18+
repo-token: ${{ secrets.GITHUB_TOKEN }}
19+
stale-issue-message: 'Oops, seems like we needed more information for this issue, please comment with more details or this issue will be closed in 7 days.'
20+
close-issue-message: 'This issue was closed because it is missing author input.'
21+
stale-issue-label: 'kind/stale'
22+
any-of-labels: 'need/author-input'
23+
exempt-issue-labels: 'need/triage,need/community-input,need/maintainer-input,need/maintainers-input,need/analysis'
24+
days-before-issue-stale: 6
25+
days-before-issue-close: 7
26+
enable-statistics: true

.travis.yml

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)