Skip to content

Commit 458f1c4

Browse files
committed
Add standard github workflows
1 parent 4111243 commit 458f1c4

File tree

13 files changed

+266
-0
lines changed

13 files changed

+266
-0
lines changed

.github/FUNDING.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# These are supported funding model platforms
2+
3+
github: [lando, pirog]
4+
patreon: devwithlando
5+
open_collective: devwithlando
6+
custom: https://lando.dev/join
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
name: Bug
3+
about: Create a bug report to help us improve this plugin
4+
labels: bug
5+
---
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
name: Docs
3+
about: Suggest a documentation change or improvement
4+
labels: docs
5+
---
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
name: Feature
3+
about: Suggest an idea for this project
4+
labels: feature
5+
---

.github/ISSUE_TEMPLATE/misc.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
name: Misc
3+
about: Create basically every other kind of issue
4+
labels: task
5+
---

.github/ISSUE_TEMPLATE/security.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
name: Security
3+
about: Create a security issue
4+
labels: security
5+
---
6+
7+
**DO NOT SUBMIT A SECURITY ISSUE HERE!**
8+
9+
If you have discovered a security issue with Lando, please contact the Lando Security Team directly at [security@devwithlando.io](mailto:security@devwithlando.io).
10+
11+
We manage security issues separately in a private repository until the issue has been resolved. Even if you're not sure if it's a security problem, please contact the security team before filing an issue, blogging, or tweeting about it.
12+
13+
**DO NOT SUBMIT A SECURITY ISSUE HERE!**

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
### Bare minimum self-checks
2+
3+
> [What do you think of a person who only does the bare minimum?](https://getyarn.io/yarn-clip/dcf80710-425e-478b-bde1-c107bd11e849)
4+
5+
- [ ] I've updated this PR with the latest code from `main`
6+
- [ ] I've done a cursory QA pass of my code locally
7+
- [ ] I've ensured all automated status check and tests pass
8+
- [ ] I've [connected this PR to an issue](https://help.zenhub.com/support/solutions/articles/43000010350-connecting-pull-requests-to-github-issues)
9+
10+
### Pieces of flare
11+
12+
- [ ] I've written a unit or functional test for my code
13+
- [ ] I've updated relevant documentation it my code changes it
14+
- [ ] I've updated this repo's README if my code changes it
15+
- [ ] I've updated this repo's CHANGELOG with my change unless its a trivial change (like updating a typo in the docs)
16+
17+
### Finally
18+
19+
- [ ] I've [requested a review](https://help.github.com/en/articles/requesting-a-pull-request-review) with relevant people
20+
21+
If you have any issues or need help please join the `#contributors` channel in the [Lando slack](https://www.launchpass.com/devwithlando) and someone will gladly help you out!
22+
23+
You can also check out the [coder guide](https://docs.lando.dev/contrib/coder.html).
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Add to Contrib Project
2+
3+
on:
4+
issues:
5+
types: [labeled]
6+
pull_request:
7+
types: [labeled]
8+
9+
jobs:
10+
add_to_project:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Add issue/PR to GitHub Project
14+
if: github.event.label.name == 'flag'
15+
uses: actions/add-to-project@v1.0.0
16+
with:
17+
project-url: https://github.com/orgs/lando/projects/7
18+
github-token: ${{ secrets.SHADOW_COUNCIL_ESCALATOR }}
19+
labeled: flag
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Integration Tests (Leia)
2+
3+
on:
4+
pull_request:
5+
workflow_dispatch:
6+
7+
jobs:
8+
leia-tests:
9+
runs-on: ${{ matrix.os }}
10+
env:
11+
TERM: xterm
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
leia-test:
16+
- examples/mailpit
17+
lando-version:
18+
- 3-edge-slim
19+
os:
20+
- ubuntu-24.04
21+
node-version:
22+
- '18'
23+
steps:
24+
- name: Checkout code
25+
uses: actions/checkout@v4
26+
- name: Install node ${{ matrix.node-version }}
27+
uses: actions/setup-node@v4
28+
with:
29+
node-version: ${{ matrix.node-version }}
30+
registry-url: https://registry.npmjs.org
31+
- name: Install NPM dependencies
32+
run: npm clean-install --production
33+
- name: Bundle Deps
34+
uses: lando/prepare-release-action@v3
35+
with:
36+
lando-plugin: true
37+
version: dev
38+
sync: false
39+
- name: Setup lando ${{ matrix.lando-version }}
40+
uses: lando/setup-lando@v3
41+
with:
42+
lando-version: ${{ matrix.lando-version }}
43+
config: |
44+
setup.skipCommonPlugins=true
45+
setup.plugins.@lando/mailpit=/home/runner/work/mailpit/mailpit
46+
telemetry: false
47+
- name: Run Leia Tests
48+
uses: lando/run-leia-action@v2
49+
with:
50+
leia-test: "./${{ matrix.leia-test }}/README.md"
51+
cleanup-header: "Destroy tests"
52+
shell: bash
53+
stdin: true

.github/workflows/pr-linter.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Lint Code
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
lint:
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
matrix:
11+
os:
12+
- ubuntu-24.04
13+
node-version:
14+
- '20'
15+
steps:
16+
# Install deps and cache
17+
- name: Checkout code
18+
uses: actions/checkout@v4
19+
- name: Install node ${{ matrix.node-version }}
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: ${{ matrix.node-version }}
23+
cache: npm
24+
- name: Install NPM dependencies
25+
run: npm clean-install --prefer-offline --frozen-lockfile
26+
27+
# Run the linter
28+
- name: Run code linter
29+
run: npm run lint

0 commit comments

Comments
 (0)