Skip to content

Commit

Permalink
Set up github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanjjung committed Sep 30, 2024
1 parent b9421ab commit 7e61df7
Show file tree
Hide file tree
Showing 5 changed files with 117 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
name: Bug report
labels: bug
about: Create a report to help us improve

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Actual behavior**
A clear and concise description of what happened instead.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**System (please complete the following information):**

- OS: [e.g. Windows 10]
- Browser Version [e.g. Firefox 114.0b8 (64-Bit)]

**Additional context**
Add any other context about the problem here.
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blank_issues_enabled: false
18 changes: 18 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
name: Feature request
labels: enhancement
about: Suggest an idea for this project

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is.

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
16 changes: 16 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!--
* Filling out the template is required.
* All new code must have been tested to ensure against regressions
-->

## Description of the Change

<!-- We must be able to understand the design of your change from this description, so please walk us through the concepts. -->

## Benefits

<!-- What benefits will be realized by the code change? -->

## Applicable Issues

<!-- Enter any applicable issues here -->
48 changes: 48 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: validate

concurrency:
group: validate
cancel-in-progress: true

#
on:
pull_request:
branches:
- 'main'

permissions:
contents: read
pull-requests: read

jobs:
# Main filter detecting where in the repo changes have been made, allowing us to be smart about how we respond
detect-changes:
runs-on: ubuntu-latest
environment: staging
outputs:
lint: ${{ steps.check.outputs.lint }}
steps:
- uses: actions/checkout@v4

- uses: dorny/paths-filter@v3
id: check
with:
filters: |
validate-iac:
- 'tb_pulumi/**'
- '.github/workflows/validate.yml'
# Run Ruff against tb_pulumi
lint:
needs: detect-changes
runs-on: ubuntu-latest
environment: staging
if: needs.detect-changes.outputs.lint == 'true'
steps:
- uses: actions/checkout@v4

- name: Quick lint with Ruff
uses: chartboost/ruff-action@v1
with:
src: './tb_pulumi'
args: 'format --check'

0 comments on commit 7e61df7

Please sign in to comment.