Skip to content

Commit

Permalink
chore: update .github folder
Browse files Browse the repository at this point in the history
  • Loading branch information
lihbr committed Jul 8, 2021
1 parent 0367226 commit aba0715
Show file tree
Hide file tree
Showing 6 changed files with 110 additions and 61 deletions.
37 changes: 23 additions & 14 deletions .github/ISSUE_TEMPLATE/Bug_report.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,36 @@
---
name: "🐛 Bug Report"
about: "Found something that is not working as expected? Please prefer this template 🙂"
labels: bug
name: 🚨 Bug report
about: Report a bug report to help us improve the package.
title: ""
labels: "bug"
assignees: ""
---

### Version
<!-- 💙 Thanks for your time to make this package better with your feedback 💙
- Prismic CLI version (know it by running `prismic --version`): <!-- vX.X.X -->
**IMPORTANT** Before reporting a bug please make sure that you have read through the documentation:
- https://prismic.io/docs
<!-- Feel free to include any other environment-related information here (framework used, other modules version, etc.) -->
👍 A properly detailed bug report can save a LOT of time and help fixing issues as soon as possible.
-->

### Reproduction
### Versions

<!-- Define a way to reproduce said bug -->
- slice-machine-ui: <!-- ex: v0.1.0 -->
- node: <!-- ex: v12.14.0 -->

### What is expected?
### Reproduction

<!-- Define the expected behavior -->
<!-- Link to a minimal test case, without a reproduction, it is so hard to address problem :( -->

### What is actually happening?
<details open>
<summary>Additional Details</summary>
<br>
<!-- Attaching `package.json`, dependencies, logs or code snippets would help to find the issue -->
</details>

<!-- Define the buggy behavior -->
### Steps to reproduce

### Any additional information
### What is expected?

<!-- Any other useful information: suggestions, potential workarounds, etc. -->
### What is actually happening?
8 changes: 4 additions & 4 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
blank_issues_enabled: true
blank_issues_enabled: false
contact_links:
- name: 🚨 Having an issue?
url: https://community.prismic.io/c/slice-machine
about: Reach out to us on our Community Forum.
- name: 👪 Prismic Community Forum
url: https://community.prismic.io
about: Ask questions about this package or raise issues directly related to Prismic. You will usually get support much quicker there!
25 changes: 25 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
name: 🙋‍♀️ Feature request
about: Suggest an idea or enhancement for the package.
title: ""
labels: "enhancement"
assignees: ""
---

<!-- 💙 Thanks for your time to make this package better with your feedback 💙 -->

### Is your feature request related to a problem? Please describe.

<!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] -->

### Describe the solution you'd like

<!-- A clear and concise description of what you want to happen. Adding some code examples would be neat! -->

### 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. -->
14 changes: 13 additions & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,16 @@

<!--- Describe your changes in detail -->
<!--- Why is this change required? What problem does it solve? -->
<!--- If it resolves an open issue, please link to the issue here. For example "Resolves: #1337" -->
<!--- If it resolves an open issue, please link to the issue here. For example "Resolves: #137" -->

## Checklist:

<!--- Put an `x` in all the boxes that apply. -->
<!--- If your change requires a documentation PR, please link it appropriately -->
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->

- [ ] My change requires a change to the documentation.
- [ ] I have updated the documentation accordingly. (PR: #)
- [ ] All new and existing tests are passing.

<!--- A cute animal picture is welcome to close your PR! -->
45 changes: 45 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: ci

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
ci:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest]
node: [14]

steps:
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}

- name: Checkout
uses: actions/checkout@master

- name: Cache node_modules
uses: actions/cache@v2
with:
path: node_modules
key: ${{ matrix.os }}-node-v${{ matrix.node }}-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/package-lock.json')) }}

- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: npm ci

- name: Unit
run: npm run test

- name: Build
run: npm run build

- name: Coverage
uses: codecov/codecov-action@v1
42 changes: 0 additions & 42 deletions .github/workflows/publish.yml

This file was deleted.

0 comments on commit aba0715

Please sign in to comment.