Skip to content

Commit dd5380f

Browse files
test octomind integration (#1)
* test octomind integration * oopsie? * test * test * test 2 * test * test v2 action * better readme + remove test code * MR review * see readme * next readme
1 parent 2318807 commit dd5380f

File tree

3 files changed

+59
-27
lines changed

3 files changed

+59
-27
lines changed

.github/dependabot.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
2+
version: 2
3+
updates:
4+
- package-ecosystem: "npm"
5+
directory: "/"
6+
schedule:
7+
interval: "daily"
8+
9+
- package-ecosystem: "github-actions"
10+
directory: "/"
11+
schedule:
12+
interval: "daily"

.github/workflows/octomind.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
on:
2+
deployment_status
3+
4+
concurrency:
5+
group: ${{ github.workflow }}-${{ github.ref }}
6+
cancel-in-progress: true
7+
8+
jobs:
9+
octomind:
10+
if: ${{ github.event.deployment_status.state == 'success' }}
11+
name: 🚀🐙 trigger octomind e2e tests 🚀🐙
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: OctoMind-dev/automagically-action-execute@v2
15+
with:
16+
testTargetId: c0f2336b-5afb-488b-879d-fd3a3b11bd3c
17+
url: ${{ github.event.deployment_status.target_url }}
18+
token: ${{ secrets.AUTOMAGICALLY_TOKEN }}

README.md

+29-27
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,36 @@
1-
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
21

3-
## Getting Started
2+
## Vercel Actions Example for octomind-integration
43

5-
First, run the development server:
4+
This project is supposed to showcase the way to integrate [octomind](https://octomind.dev) into a vercel-deployed app.
65

7-
```bash
8-
npm run dev
9-
# or
10-
yarn dev
11-
# or
12-
pnpm dev
6+
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
7+
Deployment happens on [Vercel](https://vercel.com) with the native vercel-github integration.
8+
9+
The octomind tests use the [octomind execute action](https://github.com/OctoMind-dev/automagically-action-execute) and the [octomind github app](https://github.com/apps/octomind-dev)
10+
to enable running tests on each preview branch. See the [.github/workflows/octomind.yml](.github/workflows/octomind.yml) file for the actions integration or just copy it:
11+
12+
```yml
13+
on:
14+
deployment_status
15+
16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.ref }}
18+
cancel-in-progress: true
19+
20+
jobs:
21+
octomind:
22+
if: ${{ github.event.deployment_status.state == 'success' }}
23+
name: 🚀🐙 trigger octomind e2e tests 🚀🐙
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: OctoMind-dev/automagically-action-execute@v2
27+
with:
28+
testTargetId: <yourTestTargetId>
29+
url: ${{ github.event.deployment_status.target_url }}
30+
token: ${{ secrets.AUTOMAGICALLY_TOKEN }}
1331
```
1432
15-
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
16-
17-
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
18-
19-
This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.
20-
21-
## Learn More
22-
23-
To learn more about Next.js, take a look at the following resources:
24-
25-
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
26-
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
27-
28-
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
29-
30-
## Deploy on Vercel
33+
See [🚀🐙 trigger octomind e2e tests 🚀🐙](https://github.com/OctoMind-dev/vercel-actions-example/actions/runs/5613582651/job/15209923666?pr=1) for a successful actions run after a vercel deployment.
3134
32-
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
35+
Follow the setup workflow as described in our [docs](https://docs.octomind.dev/quickstart-vercel) to get the required data.
3336
34-
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.

0 commit comments

Comments
 (0)