-
Notifications
You must be signed in to change notification settings - Fork 15
deploy JS unified CI script #274
Changes from 3 commits
45b1e74
cf9f8c1
5cec3f5
f4d2f75
c2edd4a
1dcf962
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,14 @@ | ||||||||||
| { | ||||||||||
| "defaults": { | ||||||||||
| "files": [ | ||||||||||
| ".github/workflows/automerge.yml", | ||||||||||
| ".github/workflows/js-test-and-release.yml" | ||||||||||
| ] | ||||||||||
| }, | ||||||||||
| "repositories": [ | ||||||||||
| { "target": "ipfs/js-blockstore-core" }, | ||||||||||
| { "target": "libp2p/js-libp2p-crypto" }, | ||||||||||
| { "target": "libp2p/js-libp2p-interfaces" }, | ||||||||||
| { "target": "libp2p/js-libp2p-tcp" } | ||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
vasco-santos/is-loopback-addr should also be in here but it's primary branch is called There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note that these repos will need to grant permissions to the web3-bot. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No, we don't have to wait for #262 because As for more repos, how about we start with the original 4 to make sure the setup works as expected first? @achingbrain Could you check if There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Aha, gotcha. I've added Happy to merge this without the extra repos - since the bot is gaining perms we can add them later. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is someone monitoring the |
||||||||||
| ] | ||||||||||
| } | ||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,125 @@ | ||
| name: test & maybe release | ||
| on: | ||
| push: | ||
| branches: | ||
| - $default-branch # with #262 - ${{{ github.default_branch }}} | ||
| pull_request: | ||
| branches: | ||
| - $default-branch # with #262 - ${{{ github.default_branch }}} | ||
|
|
||
| jobs: | ||
|
|
||
| check: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - uses: actions/setup-node@v2 | ||
| with: | ||
| node-version: lts/* | ||
| - uses: ipfs/aegir/actions/cache-node-modules@master | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This action doesn't have to live in the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We could also make a separate repo for it if we want to put it on the marketplace - similarly to what we did here https://github.com/protocol/cache-go-action. For now though, we can leave it in |
||
| - run: npm run --if-present lint | ||
| - run: npm run --if-present dep-check | ||
|
|
||
| test-node: | ||
| needs: check | ||
| runs-on: ${{ matrix.os }} | ||
| strategy: | ||
| matrix: | ||
| os: [windows-latest, ubuntu-latest, macos-latest] | ||
| node: [16] | ||
| fail-fast: true | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - uses: actions/setup-node@v2 | ||
| with: | ||
| node-version: ${{ matrix.node }} | ||
| - uses: ipfs/aegir/actions/cache-node-modules@master | ||
| - run: npm run --if-present test:node | ||
| - uses: codecov/codecov-action@29386c70ef20e286228c72b668a06fd0e8399192 # v1 | ||
achingbrain marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| test-chrome: | ||
| needs: check | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - uses: actions/setup-node@v2 | ||
| with: | ||
| node-version: lts/* | ||
| - uses: ipfs/aegir/actions/cache-node-modules@master | ||
| - run: npm run --if-present test:chrome | ||
galargh marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| test-chrome-webworker: | ||
| needs: check | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - uses: actions/setup-node@v2 | ||
| with: | ||
| node-version: lts/* | ||
| - uses: ipfs/aegir/actions/cache-node-modules@master | ||
| - run: npm run --if-present test:chrome-webworker | ||
galargh marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| test-firefox: | ||
| needs: check | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - uses: actions/setup-node@v2 | ||
| with: | ||
| node-version: lts/* | ||
| - uses: ipfs/aegir/actions/cache-node-modules@master | ||
| - run: npm run --if-present test:firefox | ||
galargh marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| test-firefox-webworker: | ||
| needs: check | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - uses: actions/setup-node@v2 | ||
| with: | ||
| node-version: lts/* | ||
| - uses: ipfs/aegir/actions/cache-node-modules@master | ||
| - run: npm run --if-present test:firefox-webworker | ||
galargh marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| test-electron-main: | ||
| needs: check | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - uses: actions/setup-node@v2 | ||
| with: | ||
| node-version: lts/* | ||
| - uses: ipfs/aegir/actions/cache-node-modules@master | ||
| - run: npx xvfb-maybe npm run --if-present test:electron-main | ||
galargh marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| test-electron-renderer: | ||
| needs: check | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - uses: actions/setup-node@v2 | ||
| with: | ||
| node-version: lts/* | ||
| - uses: ipfs/aegir/actions/cache-node-modules@master | ||
| - run: npx xvfb-maybe npm run --if-present test:electron-renderer | ||
galargh marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| release: | ||
| needs: [test-node, test-chrome, test-chrome-webworker, test-firefox, test-firefox-webworker, test-electron-main, test-electron-renderer] | ||
| runs-on: ubuntu-latest | ||
| if: github.event_name == 'push' && github.ref == 'refs/heads/$default-branch' # with #262 - 'refs/heads/${{{ github.default_branch }}}' | ||
| steps: | ||
| - uses: actions/[email protected] | ||
galargh marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| with: | ||
| fetch-depth: 0 | ||
| - uses: actions/setup-node@v2 | ||
| with: | ||
| node-version: lts/* | ||
| - uses: ipfs/aegir/actions/cache-node-modules@master | ||
| - uses: ipfs/aegir/actions/docker-login@master | ||
achingbrain marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| with: | ||
| docker-token: ${{ secrets.DOCKER_USERNAME }} | ||
| docker-username: ${{ secrets.DOCKER_USERNAME }} | ||
| - run: npm run --if-present release | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
Uh oh!
There was an error while loading. Please reload this page.