Skip to content
This repository was archived by the owner on Oct 13, 2024. It is now read-only.

update actions checkout@v3 setup-node@v3 with node16 #94

Closed
wants to merge 24 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
github: heliomarpm

ko_fi: heliomarpm
liberapay: heliomarpm
custom: [
"https://www.paypal.com/donate?business=KBVHLR7Z9V7B2&no_recurring=0&currency_code=USD",
"https://www.paypal.com/donate?business=KBVHLR7Z9V7B2&no_recurring=0&currency_code=BRL",
"https://www.pixme.bio/heliomarpm"
]
39 changes: 39 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: '🐛 Bug Report'
description: Report a reproducible bug.
labels:
- possible-bug
- needs-triage
body:
- type: markdown
attributes:
value: |
Thank you for wanting to create an issue in this repository. Before you do, please ensure you are filing the issue in the right place.
Please read and follow the instructions before submitting an issue:
- type: markdown
attributes:
value: |
- If you have found a security issue [please submit it here](https://hackerone.com/github)
- If you have questions about writing workflows or action files, then please [visit the GitHub Community Forum's Actions Board](https://github.community/c/code-to-cloud/github-actions)
- If you are having an issue or question about GitHub Actions then please [contact customer support](https://help.github.com/en/articles/about-github-actions#contacting-support)
- Read all our documentation, especially the [README](https://github.com/heliomarpm/action-electron-builder/blob/master/README.md). It may contain information that helps you solve your issue.
- Ensure your issue isn't already [reported](https://github.com/heliomarpm/action-electron-builder/issues?utf8=%E2%9C%93&q=is%3Aissue).
- Ensure it isn't already fixed in the latest action-electron-builder version.
- type: markdown
attributes:
value: '⚠️👆 Feel free to these instructions before submitting the issue 👆⚠️'
- type: textarea
id: description
attributes:
label: 'Describe the bug'
description: A clear and concise description of what the bug is.
validations:
required: true

- type: textarea
id: additional-context
attributes:
label: 'Additional context/Screenshots'
description: Add any other context about the problem here. If applicable, add screenshots to help explain.
render: bash
validations:
required: false
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: "😎 Heliomar P. Marques"
url: https://navto.me/heliomarpm
about: Abaout Me
32 changes: 32 additions & 0 deletions .github/ISSUE_TEMPLATE/documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: '📝 Documentation'
description: Report an error or area that needs clarification.
labels:
- documentation
- needs-triage
body:
- type: markdown
attributes:
value: 'If you found an area that needs clarification, feel free to open a PR or list the section/content that could be improved below'
- type: markdown
attributes:
value: '⚠️👆 Feel free to these instructions before submitting the issue 👆⚠️'
- type: textarea
id: content
attributes:
label: 'Section/Content To Improve'
description: Quote or link to section
validations:
required: true
- type: textarea
id: solution
attributes:
label: 'Suggested Improvement'
description: Identify what is confusing or incorrect and what could make it better
validations:
required: true
- type: textarea
id: files
attributes:
label: 'Relevant File(s)'
placeholder: e.g. README.md
render: bash
48 changes: 48 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: '✨ Feature Request'
description: Suggest an idea or feature.
labels:
- enhancement
- needs-triage

body:
- type: markdown
attributes:
value: 'Please read and follow the instructions before submitting an issue:'
- type: markdown
attributes:
value: |
- Read all our documentation, especially the [README](https://github.com/heliomarpm/action-electron-builder/blob/master/README.md). It may contain information that helps you solve your issue.
- Ensure your issue isn't already [reported](https://github.com/heliomarpm/action-electron-builder/issues?utf8=%E2%9C%93&q=is%3Aissue).
- type: markdown
attributes:
value: '⚠️👆 Feel free to these instructions before submitting the issue 👆⚠️'
- type: textarea
id: description
attributes:
label: 'Is your feature request related to a problem? Please describe.'
description: A clear and concise description of what the problem is.
placeholder: I'm always frustrated when [...]
validations:
required: true
- type: textarea
id: solution
attributes:
label: Describe the solution you'd like
description: A clear and concise description of what you want to happen.
validations:
required: false
- type: textarea
id: alternative
attributes:
label: Describe alternatives you've considered
description: A clear and concise description of any alternative solutions or features you've considered.
validations:
required: false
- type: textarea
id: additional-context
attributes:
label: 'Additional context/Screenshots'
description: Add any other context or screenshots about the feature request here.
render: bash
validations:
required: false
49 changes: 49 additions & 0 deletions .github/ISSUE_TEMPLATE/support_question.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: '🤔 Support or Usage Question'
description: Get help using Action-Electron-Builder.
labels:
- question
- needs-triage
body:
- type: markdown
attributes:
value: 'Please read and follow the instructions before submitting an issue:'
- type: markdown
attributes:
value: |
- Read all our documentation, especially the [README](https://github.com/heliomarpm/action-electron-builder/blob/master/README.md). It may contain information that helps you solve your issue.
- Ensure your issue isn't already [reported](https://github.com/heliomarpm/action-electron-builder/issues?utf8=%E2%9C%93&q=is%3Aissue).

- type: markdown
attributes:
value: '⚠️👆 Feel free to these instructions before submitting the issue 👆⚠️'
- type: textarea
id: description
attributes:
label: 'Describe the issue'
description: A clear and concise description of what the issue is.
validations:
required: true
- type: textarea
id: example
attributes:
label: 'Example Code'
description: Code snippet to illustrate your question
render: js
validations:
required: false
- type: textarea
id: expected
attributes:
label: 'Expected behavior'
description: A clear and concise description of what you expected to happen.
validations:
required: false

- type: textarea
id: additional-context
attributes:
label: 'Additional context/Screenshots'
description: Add any other context about the problem here. If applicable, add screenshots to help explain.
render: bash
validations:
required: false
35 changes: 27 additions & 8 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,27 @@
name: Lint

on:
- pull_request
- push
push:
branches:
- main
- master
paths-ignore:
- "**/*.sh"
- "**/.*"
- "**/_*"
- "**/*.txt"
- "**/*.adoc"
- "**/*.md"
- ".github/**"
- "!.github/workflows/lint.yml"
pull_request:
paths-ignore:
- "**/*.sh"
- "**/.*"
- "**/_*"
- "**/*.txt"
- "**/*.adoc"
- "**/*.md"

jobs:
lint:
Expand All @@ -11,17 +30,17 @@ jobs:

steps:
- name: Check out Git repository
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: 12
node-version: ">=20.12.2"

- name: Install dependencies
run: yarn install
run: npm ci

- name: Lint
run: |
yarn lint
yarn format
npm run lint
npm run format
62 changes: 52 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,80 @@
name: Test

on:
- push
- pull_request
# schedule:
# - cron: "35 16 * * 2"

push:
branches:
- main
- master
paths-ignore:
- "**/*.sh"
- "**/.*"
- "**/_*"
- "**/*.txt"
- "**/*.adoc"
- "**/*.md"
- ".github/**"
- "!.github/workflows/test.yml"
pull_request:
paths-ignore:
- "**/*.sh"
- "**/.*"
- "**/_*"
- "**/*.txt"
- "**/*.adoc"
- "**/*.md"

jobs:
test:
name: Test
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
package_manager: [npm, yarn]
package_root: ["./test/app-in-root/", "./test/app-in-subdirectory/", "./test/vue-app"]
package_manager: [npm]
#package_root: ["./test/app-in-root/", "./test/app-in-subdirectory/", "./test/vuevite-app"]
package_root: ["./test/app-in-root/"]

steps:
- name: Check out Git repository
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v1
- name: Cache node_modules
uses: actions/cache@v4
with:
node-version: 12
path: node_modules
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json')}}

- name: Install test app dependencies
run: |
cd ${{ matrix.package_root }}
${{ matrix.package_manager }} install

- name: apt-update
if: startsWith(matrix.os, 'ubuntu-latest')
run: sudo apt-get update

- name: autoremove
if: startsWith(matrix.os, 'ubuntu-latest')
run: sudo apt autoremove

- name: Install libarchive rpm on Linux
if: startsWith(matrix.os, 'ubuntu-latest')
run: sudo apt-get install libarchive-tools rpm

- name: Install dmg-license fo MacOS
if: startsWith(matrix.os, 'macos-latest')
run: ${{ matrix.package_manager }} install dmg-license

- name: Run action
uses: ./
with:
package_manager: ${{ matrix.package_manager }}
github_token: ${{ secrets.github_token }}
package_root: ${{ matrix.package_root }}
use_vue_cli: ${{ contains(matrix.package_root, 'vue')}}
max_attempts: "2"
use_vue_cli: ${{ contains(matrix.package_root, 'vuevite')}}
max_attempts: 3
Loading