Skip to content

Commit

Permalink
ci(github): Migrate from travis to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jourdain committed Aug 18, 2021
1 parent 8da702b commit d37f378
Show file tree
Hide file tree
Showing 8 changed files with 200 additions and 37 deletions.
3 changes: 3 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# These are supported funding model platforms

custom: ["https://www.kitware.com/contact-us/", kitware.com]
42 changes: 42 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
name: 🐞 Bug report
about: Report a reproducible bug or regression.
title: ''
labels: 'type: bug 🐞'
assignees: ''

---
<!--
👋 Hello, and thank you for starting this contribution!
❓ If you are trying to submit a question for general support, please reach out on our discourse forum instead: https://discourse.paraview.org/c/web-support/10
🐞 If you do need to report a bug, please follow the template below to increase the chances of your report being looked at.
🧱 If adequate, assign one of the `Module: XXX` labels to your issue when creating it.
-->

### High-level description
<!-- A concise description of what the bug is. -->

### Steps to reproduce
<!--
Steps to reproduce the behavior. If applicable, use:
* lists
* code snippets
```js
code here
```
-->

### Detailed behavior
<!--
A detailed description of what happens. If applicable, use:
* screenshots (drag and drop)
* live examples (ex: https://codepen.io/jourdain/pen/RQZWYa)
-->

### Expected behavior
<!-- A detailed description of what is expected to happen. -->

### Environment
- **Visualizer**: <!-- ex: 14.0.0 -->
- **OS**: <!-- ex: Windows 10, iOS 13.6 -->
- **Browser**: <!-- ex: Chrome 89.0.4389.128 -->
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: Help and Support
url: https://discourse.paraview.org/c/web-support/10
about: Please use the forum if you have questions or need help.
24 changes: 24 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
name: 💡 Feature request
about: Suggest an idea for the project.
title: ''
labels: 'type: feature request 💡'
assignees: ''

---
<!--
👋 Hello, and thank you for starting this contribution!
❓ If you are trying to submit a question for general support, please reach out on our discourse forum instead: https://discourse.paraview.org/c/web-support/10
💡 If you do want to suggest a change or request a feature, please follow the template below to increase the chances of your report being looked at.
🧱 If adequate, assign one of the `Module: XXX` labels to your issue when creating it.
-->

### Need
<!-- A clear and concise description of what need or problem you're trying to address. -->

### Feature
<!--
A clear and concise description of a feature/enhancement you'd like to see being added. If applicable, use:
* potential alternatives
* screenshots
-->
40 changes: 40 additions & 0 deletions .github/ISSUE_TEMPLATE/performance_issue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
name: ⚡️ Performance issue
about: Report an abnormally slow behavior.
title: ''
labels: 'type: performance ⚡️'
assignees: ''

---
<!--
👋 Hello, and thank you for starting this contribution!
❓ If you are trying to submit a question for general support, please reach out on our discourse forum instead: https://discourse.paraview.org/c/web-support/10
⚡️ If you do need to report some performance issue, please follow the template below to increase the chances of your report being looked at.
🧱 If adequate, assign one of the `Module: XXX` labels to your issue when creating it.
-->

### High-level description
<!-- A concise description of the performance issue. -->

### Steps to reproduce
<!--
Steps to reproduce the behavior. If applicable, use:
* lists
* code snippets
```js
code here
```
-->

### Current behavior
<!--
A detailed description of what happens. If applicable, use:
* profiling data
* videos (drag and drop)
* live examples (ex: https://codepen.io/jourdain/pen/RQZWYa)
-->

### Environment
- **Visualizer**: <!-- ex: 14.0.0 -->
- **OS**: <!-- ex: Windows 10, iOS 13.6 -->
- **Browser**: <!-- ex: Chrome 89.0.4389.128 -->
47 changes: 47 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<!--
👋 Hello, and thank you for starting this contribution!
📖 Make sure you've read our CONTRIBUTING.md guide before submitting your pull request.
❗️ Please follow the template below to help other contributors review your work.
-->

### PR and Code Checklist
<!--
NOTE: We will not merge if the following steps have not been completed!
-->
- [ ] [semantic-release](https://github.com/semantic-release/semantic-release) commit messages
- [ ] Run `npm run reformat` to have correctly formatted code

### Context
<!--
Explain why this change is needed. Please include relevant links supporting this change, such as:
- fix #ISSUE_NUMBER (from issue tracker)
- discourse post thread, or any other existing references
-->

### Changes
<!--
Please describe what is changing. Include:
- APIs added, deleted, deprecated, or changed
- Classes and methods added, deleted, deprecated, or changed
- A summary of usage if this is a new feature or change to an API.
-->

### Results
<!--
Describe or illustrate the effects of your contribution. Please include:
- comparisons of the behavior before vs after
- screenshots of new or changed visualizations if applicable
-->

### Testing
<!--
Please describe how this can be tested by reviewers. Be specific about anything not tested and the reasons why. Tests should be added for new functionality and existing tests should complete without errors. See CONTRIBUTING.md
-->
- [ ] This change adds or fixes unit tests
- [ ] All tests complete without errors on the following environment:
- **Visualizer**: <!-- ex: 14.0.0 (favor latest master) -->
- **OS**: <!-- ex: Windows 10, iOS 13.6 -->
- **Browser**: <!-- ex: Chrome 89.0.4389.128 -->

<!-- Remove the line below if it is not relevant -->
_This contribution is funded by [Example](https://example.com)._
39 changes: 39 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Release
on:
push:
branches:
- master

jobs:
publish:
name: Publish
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: 12
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build:release
- name: Validate
run: npm run validate
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
git config --global user.name "Github Actions"
git config --global user.email "sebastien.jourdain@kitware.com"
npm run semantic-release
- name: Publish docs
if: github.ref == 'refs/heads/master'
env:
GIT_PUBLISH_URL: https://${{ secrets.GH_TOKEN }}@github.com/Kitware/visualizer.git
run: npm run doc:publish
37 changes: 0 additions & 37 deletions .travis.yml

This file was deleted.

0 comments on commit d37f378

Please sign in to comment.