Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Commit

Permalink
fix: add CI actions to examples (#45)
Browse files Browse the repository at this point in the history
* feat: add CI actions to examples
* chore: update PR template instructions
  • Loading branch information
oliveriosousa authored Sep 30, 2021
1 parent 044ba8e commit 210ec86
Show file tree
Hide file tree
Showing 65 changed files with 1,123 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ Contributions are what make the open source community such an amazing place to b
- Follow the [example-template](`https://github.com/ipfs-examples/example-template`)
- This repository serves as template to create new examples to guarantee consistency between examples. It contains all the necessary files to create a new example
- Follow the [example-template-fork-&-go](`https://github.com/ipfs-examples/example-fork-go-template`)
- This repository serves as template to be used as a reference of how to implement the CI in order to sync the example with a standalone repo (correspondent to each example)
- Examples must:
- Live inside the `/examples/` folder
- Have tests and should make use of `test-util-ipfs-example` library
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
**IMPORTANT: Please do not create a Pull Request for this repository.**

The contents of this repository are automatically synced from the parent [IPFS Examples Project](https://github.com/ipfs-examples/js-ipfs-examples) so any changes made to the standalone repository will be lost after the next sync.

Please open a PR against [IPFS Examples](https://github.com/ipfs-examples/js-ipfs-examples) instead.

## Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are **greatly appreciated**.

1. Fork the [IPFS Examples Project](https://github.com/ipfs-examples/js-ipfs-examples)
2. Create your Feature Branch (`git checkout -b feature/amazing-example`)
3. Commit your Changes (`git commit -a -m 'feat: add some amazing example'`)
4. Push to the Branch (`git push origin feature/amazing-example`)
5. Open a Pull Request
20 changes: 20 additions & 0 deletions examples/browser-add-readable-stream/.github/workflows/sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Sync
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"

jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Pull from another repository
uses: ipfs-examples/actions-pull-directory-from-repo@main
with:
source-repo: "ipfs-examples/js-ipfs-examples"
source-folder-path: "examples/browser-add-readable-stream"
source-branch: "master"
target-branch: "main"
git-username: github-actions
git-email: [email protected]
15 changes: 15 additions & 0 deletions examples/browser-angular/.github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
**IMPORTANT: Please do not create a Pull Request for this repository.**

The contents of this repository are automatically synced from the parent [IPFS Examples Project](https://github.com/ipfs-examples/js-ipfs-examples) so any changes made to the standalone repository will be lost after the next sync.

Please open a PR against [IPFS Examples](https://github.com/ipfs-examples/js-ipfs-examples) instead.

## Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are **greatly appreciated**.

1. Fork the [IPFS Examples Project](https://github.com/ipfs-examples/js-ipfs-examples)
2. Create your Feature Branch (`git checkout -b feature/amazing-example`)
3. Commit your Changes (`git commit -a -m 'feat: add some amazing example'`)
4. Push to the Branch (`git push origin feature/amazing-example`)
5. Open a Pull Request
20 changes: 20 additions & 0 deletions examples/browser-angular/.github/workflows/sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Sync
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"

jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Pull from another repository
uses: ipfs-examples/actions-pull-directory-from-repo@main
with:
source-repo: "ipfs-examples/js-ipfs-examples"
source-folder-path: "examples/browser-angular"
source-branch: "master"
target-branch: "main"
git-username: github-actions
git-email: [email protected]
15 changes: 15 additions & 0 deletions examples/browser-browserify/.github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
**IMPORTANT: Please do not create a Pull Request for this repository.**

The contents of this repository are automatically synced from the parent [IPFS Examples Project](https://github.com/ipfs-examples/js-ipfs-examples) so any changes made to the standalone repository will be lost after the next sync.

Please open a PR against [IPFS Examples](https://github.com/ipfs-examples/js-ipfs-examples) instead.

## Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are **greatly appreciated**.

1. Fork the [IPFS Examples Project](https://github.com/ipfs-examples/js-ipfs-examples)
2. Create your Feature Branch (`git checkout -b feature/amazing-example`)
3. Commit your Changes (`git commit -a -m 'feat: add some amazing example'`)
4. Push to the Branch (`git push origin feature/amazing-example`)
5. Open a Pull Request
20 changes: 20 additions & 0 deletions examples/browser-browserify/.github/workflows/sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Sync
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"

jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Pull from another repository
uses: ipfs-examples/actions-pull-directory-from-repo@main
with:
source-repo: "ipfs-examples/js-ipfs-examples"
source-folder-path: "examples/browser-browserify"
source-branch: "master"
target-branch: "main"
git-username: github-actions
git-email: [email protected]
15 changes: 15 additions & 0 deletions examples/browser-create-react-app/.github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
**IMPORTANT: Please do not create a Pull Request for this repository.**

The contents of this repository are automatically synced from the parent [IPFS Examples Project](https://github.com/ipfs-examples/js-ipfs-examples) so any changes made to the standalone repository will be lost after the next sync.

Please open a PR against [IPFS Examples](https://github.com/ipfs-examples/js-ipfs-examples) instead.

## Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are **greatly appreciated**.

1. Fork the [IPFS Examples Project](https://github.com/ipfs-examples/js-ipfs-examples)
2. Create your Feature Branch (`git checkout -b feature/amazing-example`)
3. Commit your Changes (`git commit -a -m 'feat: add some amazing example'`)
4. Push to the Branch (`git push origin feature/amazing-example`)
5. Open a Pull Request
20 changes: 20 additions & 0 deletions examples/browser-create-react-app/.github/workflows/sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Sync
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"

jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Pull from another repository
uses: ipfs-examples/actions-pull-directory-from-repo@main
with:
source-repo: "ipfs-examples/js-ipfs-examples"
source-folder-path: "examples/browser-create-react-app"
source-branch: "master"
target-branch: "main"
git-username: github-actions
git-email: [email protected]
15 changes: 15 additions & 0 deletions examples/browser-exchange-files/.github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
**IMPORTANT: Please do not create a Pull Request for this repository.**

The contents of this repository are automatically synced from the parent [IPFS Examples Project](https://github.com/ipfs-examples/js-ipfs-examples) so any changes made to the standalone repository will be lost after the next sync.

Please open a PR against [IPFS Examples](https://github.com/ipfs-examples/js-ipfs-examples) instead.

## Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are **greatly appreciated**.

1. Fork the [IPFS Examples Project](https://github.com/ipfs-examples/js-ipfs-examples)
2. Create your Feature Branch (`git checkout -b feature/amazing-example`)
3. Commit your Changes (`git commit -a -m 'feat: add some amazing example'`)
4. Push to the Branch (`git push origin feature/amazing-example`)
5. Open a Pull Request
20 changes: 20 additions & 0 deletions examples/browser-exchange-files/.github/workflows/sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Sync
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"

jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Pull from another repository
uses: ipfs-examples/actions-pull-directory-from-repo@main
with:
source-repo: "ipfs-examples/js-ipfs-examples"
source-folder-path: "examples/browser-exchange-files"
source-branch: "master"
target-branch: "main"
git-username: github-actions
git-email: [email protected]
15 changes: 15 additions & 0 deletions examples/browser-ipns-publish/.github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
**IMPORTANT: Please do not create a Pull Request for this repository.**

The contents of this repository are automatically synced from the parent [IPFS Examples Project](https://github.com/ipfs-examples/js-ipfs-examples) so any changes made to the standalone repository will be lost after the next sync.

Please open a PR against [IPFS Examples](https://github.com/ipfs-examples/js-ipfs-examples) instead.

## Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are **greatly appreciated**.

1. Fork the [IPFS Examples Project](https://github.com/ipfs-examples/js-ipfs-examples)
2. Create your Feature Branch (`git checkout -b feature/amazing-example`)
3. Commit your Changes (`git commit -a -m 'feat: add some amazing example'`)
4. Push to the Branch (`git push origin feature/amazing-example`)
5. Open a Pull Request
20 changes: 20 additions & 0 deletions examples/browser-ipns-publish/.github/workflows/sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Sync
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"

jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Pull from another repository
uses: ipfs-examples/actions-pull-directory-from-repo@main
with:
source-repo: "ipfs-examples/js-ipfs-examples"
source-folder-path: "examples/browser-ipns-publish"
source-branch: "master"
target-branch: "main"
git-username: github-actions
git-email: [email protected]
15 changes: 15 additions & 0 deletions examples/browser-lit/.github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
**IMPORTANT: Please do not create a Pull Request for this repository.**

The contents of this repository are automatically synced from the parent [IPFS Examples Project](https://github.com/ipfs-examples/js-ipfs-examples) so any changes made to the standalone repository will be lost after the next sync.

Please open a PR against [IPFS Examples](https://github.com/ipfs-examples/js-ipfs-examples) instead.

## Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are **greatly appreciated**.

1. Fork the [IPFS Examples Project](https://github.com/ipfs-examples/js-ipfs-examples)
2. Create your Feature Branch (`git checkout -b feature/amazing-example`)
3. Commit your Changes (`git commit -a -m 'feat: add some amazing example'`)
4. Push to the Branch (`git push origin feature/amazing-example`)
5. Open a Pull Request
20 changes: 20 additions & 0 deletions examples/browser-lit/.github/workflows/sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Sync
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"

jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Pull from another repository
uses: ipfs-examples/actions-pull-directory-from-repo@main
with:
source-repo: "ipfs-examples/js-ipfs-examples"
source-folder-path: "examples/browser-lit"
source-branch: "master"
target-branch: "main"
git-username: github-actions
git-email: [email protected]
15 changes: 15 additions & 0 deletions examples/browser-mfs/.github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
**IMPORTANT: Please do not create a Pull Request for this repository.**

The contents of this repository are automatically synced from the parent [IPFS Examples Project](https://github.com/ipfs-examples/js-ipfs-examples) so any changes made to the standalone repository will be lost after the next sync.

Please open a PR against [IPFS Examples](https://github.com/ipfs-examples/js-ipfs-examples) instead.

## Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are **greatly appreciated**.

1. Fork the [IPFS Examples Project](https://github.com/ipfs-examples/js-ipfs-examples)
2. Create your Feature Branch (`git checkout -b feature/amazing-example`)
3. Commit your Changes (`git commit -a -m 'feat: add some amazing example'`)
4. Push to the Branch (`git push origin feature/amazing-example`)
5. Open a Pull Request
20 changes: 20 additions & 0 deletions examples/browser-mfs/.github/workflows/sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Sync
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"

jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Pull from another repository
uses: ipfs-examples/actions-pull-directory-from-repo@main
with:
source-repo: "ipfs-examples/js-ipfs-examples"
source-folder-path: "examples/browser-mfs"
source-branch: "master"
target-branch: "main"
git-username: github-actions
git-email: [email protected]
15 changes: 15 additions & 0 deletions examples/browser-nextjs/.github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
**IMPORTANT: Please do not create a Pull Request for this repository.**

The contents of this repository are automatically synced from the parent [IPFS Examples Project](https://github.com/ipfs-examples/js-ipfs-examples) so any changes made to the standalone repository will be lost after the next sync.

Please open a PR against [IPFS Examples](https://github.com/ipfs-examples/js-ipfs-examples) instead.

## Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are **greatly appreciated**.

1. Fork the [IPFS Examples Project](https://github.com/ipfs-examples/js-ipfs-examples)
2. Create your Feature Branch (`git checkout -b feature/amazing-example`)
3. Commit your Changes (`git commit -a -m 'feat: add some amazing example'`)
4. Push to the Branch (`git push origin feature/amazing-example`)
5. Open a Pull Request
20 changes: 20 additions & 0 deletions examples/browser-nextjs/.github/workflows/sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Sync
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"

jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Pull from another repository
uses: ipfs-examples/actions-pull-directory-from-repo@main
with:
source-repo: "ipfs-examples/js-ipfs-examples"
source-folder-path: "examples/browser-nextjs"
source-branch: "master"
target-branch: "main"
git-username: github-actions
git-email: [email protected]
15 changes: 15 additions & 0 deletions examples/browser-parceljs/.github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
**IMPORTANT: Please do not create a Pull Request for this repository.**

The contents of this repository are automatically synced from the parent [IPFS Examples Project](https://github.com/ipfs-examples/js-ipfs-examples) so any changes made to the standalone repository will be lost after the next sync.

Please open a PR against [IPFS Examples](https://github.com/ipfs-examples/js-ipfs-examples) instead.

## Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are **greatly appreciated**.

1. Fork the [IPFS Examples Project](https://github.com/ipfs-examples/js-ipfs-examples)
2. Create your Feature Branch (`git checkout -b feature/amazing-example`)
3. Commit your Changes (`git commit -a -m 'feat: add some amazing example'`)
4. Push to the Branch (`git push origin feature/amazing-example`)
5. Open a Pull Request
20 changes: 20 additions & 0 deletions examples/browser-parceljs/.github/workflows/sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Sync
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"

jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Pull from another repository
uses: ipfs-examples/actions-pull-directory-from-repo@main
with:
source-repo: "ipfs-examples/js-ipfs-examples"
source-folder-path: "examples/browser-parceljs"
source-branch: "master"
target-branch: "main"
git-username: github-actions
git-email: [email protected]
15 changes: 15 additions & 0 deletions examples/browser-readablestream/.github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
**IMPORTANT: Please do not create a Pull Request for this repository.**

The contents of this repository are automatically synced from the parent [IPFS Examples Project](https://github.com/ipfs-examples/js-ipfs-examples) so any changes made to the standalone repository will be lost after the next sync.

Please open a PR against [IPFS Examples](https://github.com/ipfs-examples/js-ipfs-examples) instead.

## Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are **greatly appreciated**.

1. Fork the [IPFS Examples Project](https://github.com/ipfs-examples/js-ipfs-examples)
2. Create your Feature Branch (`git checkout -b feature/amazing-example`)
3. Commit your Changes (`git commit -a -m 'feat: add some amazing example'`)
4. Push to the Branch (`git push origin feature/amazing-example`)
5. Open a Pull Request
Loading

0 comments on commit 210ec86

Please sign in to comment.