Skip to content

Commit

Permalink
Merge pull request #135 from hasezoey/github
Browse files Browse the repository at this point in the history
Add github issue & pr templates and workflows
  • Loading branch information
vkarpov15 authored Sep 6, 2022
2 parents 322ae41 + 51e2458 commit 3053951
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 15 deletions.
11 changes: 11 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!-- *Before creating an issue please make sure you are using the latest version of mquery -->

**Do you want to request a *feature* or report a *bug*?**

**What is the current behavior?**

**If the current behavior is a bug, please provide the steps to reproduce.**

**What is the expected behavior?**

**What are the versions of Node.js and mquery are you are using? Note that "latest" is not a version.**
9 changes: 9 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!-- Thanks for submitting a pull request! Please provide enough information so that others can review your pull request. The two fields below are mandatory.-->

**Summary**

<!-- Explain the **motivation** for making this change. What problem does the pull request solve? -->

**Examples**

<!-- If this code fixes a bug or adds a new feature, provide an example demonstrating the change, unless you added a test. -->
32 changes: 32 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Test
on:
pull_request:
push:
permissions:
contents: read

jobs:
test:
# os is not in the matrix, because otherwise there would be way too many testing instances
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
node: [12, 14, 16, 18]
mongo: [4.2, 5.0]
services:
mongodb:
image: mongo:${{ matrix.mongo }}
ports:
- 27017:27017
name: Node ${{ matrix.node }} MongoDB ${{ matrix.mongo }}
steps:
- uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # v3

- name: Setup node
uses: actions/setup-node@5b52f097d36d4b0b2f94ed6de710023fbb8b2236 # v3.1.0
with:
node-version: ${{ matrix.node }}

- run: npm install
- run: npm test
15 changes: 0 additions & 15 deletions .travis.yml

This file was deleted.

0 comments on commit 3053951

Please sign in to comment.