Skip to content

Commit

Permalink
ci: enable codeclimate/coveralls reporting (#68)
Browse files Browse the repository at this point in the history
* ci: enable codeclimate/coveralls reporting

* chore: format

* ci: fix coverage

* .

* .

* chore: cleanup
  • Loading branch information
justlevine authored Feb 5, 2025
1 parent be2a9f1 commit 7f9291d
Show file tree
Hide file tree
Showing 10 changed files with 781 additions and 780 deletions.
82 changes: 41 additions & 41 deletions .github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
@@ -1,47 +1,47 @@
name: Bug Report
description: >-
A bug report. This should be a client-facing issue that needs to be resolved.
A bug report. This should be a client-facing issue that needs to be resolved.
title: 'Bug: '
labels:
- 'type: bug 🐛'
- 'type: bug 🐛'
body:
- type: textarea
attributes:
label: Description
description: >-
Please write a brief description of the bug, including what you expected and what actually happened.
validations:
required: true
- type: textarea
attributes:
label: Steps to reproduce
description: >-
Please list the all the steps needed to reproduce the bug in an *isolated* way.
placeholder: >-
1. Go to "..."
2. ...
3. Result show X but should be Y
validations:
required: true
- type: textarea
id: additional-notes
attributes:
label: Additional Notes
description: Include any additional notes, context, considerations.
- type: checkboxes
attributes:
label: Please confirm that you have searched existing issues in the repo.
description: >-
You can do this by searching
https://github.com/axewp/wp-graphql-headless-login/issues and making sure the
bug is not related to another plugin.
options:
- label: 'Yes'
- type: textarea
attributes:
label: Description
description: >-
Please write a brief description of the bug, including what you expected and what actually happened.
validations:
required: true
- type: textarea
attributes:
label: Steps to reproduce
description: >-
Please list the all the steps needed to reproduce the bug in an *isolated* way.
placeholder: >-
1. Go to "..."
2. ...
3. Result show X but should be Y
validations:
required: true
- type: textarea
id: additional-notes
attributes:
label: Additional Notes
description: Include any additional notes, context, considerations.
- type: checkboxes
attributes:
label: Please confirm that you have searched existing issues in the repo.
description: >-
You can do this by searching
https://github.com/axewp/wp-graphql-headless-login/issues and making sure the
bug is not related to another plugin.
options:
- label: 'Yes'
required: true
- type: textarea
id: site-health
attributes:
label: Site Health Info
description: Please include the output of the Site Health Info page, by going to Tools > Site Health > Info, clicking `Copy site info to clipboard`, and pasting the output here.
validations:
required: true
- type: textarea
id: site-health
attributes:
label: Site Health Info
description: Please include the output of the Site Health Info page, by going to Tools > Site Health > Info, clicking `Copy site info to clipboard`, and pasting the output here.
validations:
required: true
70 changes: 35 additions & 35 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
name: Feature request
description: Suggest an idea for SnapWP Helper
body:
- type: markdown
attributes:
value: >-
Thank you for taking the time to submit a feature request.
- type: markdown
attributes:
value: >-
Thank you for taking the time to submit a feature request.
Please make sure to search the repo for [existing feature
requests](https://github.com/rtCamp/snapwp-helper/issues?q=is%3Aopen+is%3Aissue)
before creating a new one.
- type: textarea
attributes:
label: What problem does this address?
description: >-
Please describe the problem you are trying to solve, including why you
think this is a problem.
placeholder: I'm always frustrated when [...]
validations:
required: true
- type: textarea
attributes:
label: What is your proposed solution?
description: >-
Please provide a clear and concise description of your suggested
solution.
placeholder: What I'd like to see happen is [...]
validations:
required: true
- type: textarea
attributes:
label: What alternatives have you considered?
description: >-
Please list any alternatives you have considered, and why you think your
solution is better.
- type: textarea
attributes:
label: Additional Context
description: Add any other context or screenshots about the feature request here.
Please make sure to search the repo for [existing feature
requests](https://github.com/rtCamp/snapwp-helper/issues?q=is%3Aopen+is%3Aissue)
before creating a new one.
- type: textarea
attributes:
label: What problem does this address?
description: >-
Please describe the problem you are trying to solve, including why you
think this is a problem.
placeholder: I'm always frustrated when [...]
validations:
required: true
- type: textarea
attributes:
label: What is your proposed solution?
description: >-
Please provide a clear and concise description of your suggested
solution.
placeholder: What I'd like to see happen is [...]
validations:
required: true
- type: textarea
attributes:
label: What alternatives have you considered?
description: >-
Please list any alternatives you have considered, and why you think your
solution is better.
- type: textarea
attributes:
label: Additional Context
description: Add any other context or screenshots about the feature request here.
72 changes: 36 additions & 36 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
on:
push:
branches:
- main
- develop
workflow_dispatch:
push:
branches:
- main
- develop
workflow_dispatch:
name: Deploying Headless Server
env:
# Please keep in install-links to avoid npm install errors on the server
build-command: npm i --include-dev --install-links && npm run build:dist
# Please keep in install-links to avoid npm install errors on the server
build-command: npm i --include-dev --install-links && npm run build:dist
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: false
steps:
- uses: actions/checkout@v4
- name: Setup hosts file
run: |
cat <<EOF > '${{ github.workspace }}/.github/hosts.yml'
${{ secrets.HOSTS_FILE }}
EOF
- name: Get node version
id: node-version
run: |
cd '${{ github.workspace }}'
NODE_VERSION="$(cat .nvmrc)"
echo "node_version=${NODE_VERSION}" >> "$GITHUB_ENV"
- name: Deploy
uses: rtCamp/action-deploy-wordpress@master
env:
SSH_PRIVATE_KEY: ${{ secrets.ED_DEPLOYMENT_KEY }}
NODE_VERSION: "${{ env.node_version }}"
NODE_BUILD_COMMAND: ${{ env.build-command }}
SSH_USER: ${{ secrets.SSH_USER }}
SSH_HOST: ${{ secrets.SSH_HOST }}
- if: always()
uses: rtCamp/action-cleanup@master
deploy:
name: Deploy
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: false
steps:
- uses: actions/checkout@v4
- name: Setup hosts file
run: |
cat <<EOF > '${{ github.workspace }}/.github/hosts.yml'
${{ secrets.HOSTS_FILE }}
EOF
- name: Get node version
id: node-version
run: |
cd '${{ github.workspace }}'
NODE_VERSION="$(cat .nvmrc)"
echo "node_version=${NODE_VERSION}" >> "$GITHUB_ENV"
- name: Deploy
uses: rtCamp/action-deploy-wordpress@master
env:
SSH_PRIVATE_KEY: ${{ secrets.ED_DEPLOYMENT_KEY }}
NODE_VERSION: '${{ env.node_version }}'
NODE_BUILD_COMMAND: ${{ env.build-command }}
SSH_USER: ${{ secrets.SSH_USER }}
SSH_HOST: ${{ secrets.SSH_HOST }}
- if: always()
uses: rtCamp/action-cleanup@master
Loading

0 comments on commit 7f9291d

Please sign in to comment.