Skip to content

Commit 9be425d

Browse files
committed
chore: add workflow, configurations
1 parent d83b7be commit 9be425d

File tree

6 files changed

+115
-0
lines changed

6 files changed

+115
-0
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto

.github/CONTRIBUTING.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Contributing
2+
3+
:balloon: First off, thank you for considering contributing to xbow. :balloon:
4+
5+
All pull-requests are welcome. File a bug report, fix a typo, improve the documentation, or add a new feature. All are helpful, and make xbow better.
6+
7+
Please have a quick look at these guidelines to help both you and the developers to keep things moving smoothly.
8+
9+
## Basic Conduct
10+
11+
* Please be respectful when discussing changes and issues. Consider that not everyone's first language is english.
12+
* Create an issue for any major changes and enhancements that you wish to make.
13+
14+
If this is your first time contributing to a project you might want to take a look [here](https://egghead.io/courses/how-to-contribute-to-an-open-source-project-on-github).
15+
16+
17+
## Getting started
18+
1. Create your own fork of the code.
19+
2. Do the changes in your fork.
20+
* Minor changes that don't impact code functionality (typos, inline comments, ... ) can be done in the master branch.
21+
* Functional changes should be collected in their own branch.
22+
3. If you like the change and think the project could use it:
23+
* Open a pull request referencing the issue describing the new feature in the comment section \([how-to](https://github.com/blog/1506-closing-issues-via-pull-requests)\).
24+
25+
Once your pull request has been reviewed it will be merged. You can greatly help the reviewer by:
26+
* sticking to one feature per pull request.
27+
* use [meaningful](https://chris.beams.io/posts/git-commit/) commit messages inside your feature branch.
28+
* filling out the pull request & issue templates.

.github/ISSUE_TEMPLATE.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
### Expected behavior
2+
3+
### Actual behavior
4+
5+
### Reproduction steps
6+
7+
### Please provide the following
8+
* Java Version:
9+
* exist-db version:
10+
* xbow version:
11+
* OS version:

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Fixes #
2+
---
3+
- [ ] includes changes to documentation / readme
4+
- [ ] did you already increase version number according to [sem-ver](http://semver.org)?
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of existdb
2+
3+
name: Test and Release
4+
5+
on: [push, pull_request]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
exist-version: [latest, release, 5.0.0]
13+
services:
14+
# Label used to access the service container
15+
exist:
16+
image: existdb/existdb:${{ matrix.exist-version}}
17+
ports:
18+
- 8080:8080
19+
steps:
20+
- uses: actions/checkout@v2
21+
- name: Use Node.js 14
22+
uses: actions/setup-node@v1
23+
with:
24+
node-version: 14
25+
- run: npm ci
26+
- run: npm start
27+
- run: npm test
28+
release:
29+
name: Release
30+
runs-on: ubuntu-latest
31+
needs: build
32+
if: github.ref == 'refs/heads/main'
33+
steps:
34+
- name: Checkout
35+
uses: actions/checkout@v2
36+
with:
37+
fetch-depth: 0
38+
- name: Setup Node.js
39+
uses: actions/setup-node@v1
40+
with:
41+
node-version: 14
42+
- name: Install dependencies
43+
run: npm ci
44+
- name: Release
45+
env:
46+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47+
run: npx semantic-release

.releaserc

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"plugins": [
3+
"@semantic-release/commit-analyzer",
4+
"@semantic-release/release-notes-generator",
5+
["@semantic-release/exec", {
6+
"prepareCmd": "npm version ${nextRelease.version} --no-git-tag-version --allow-same-version",
7+
"publishCmd": "npm run build"
8+
}],
9+
["@semantic-release/git", {
10+
"assets": ["package.json"],
11+
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
12+
}],
13+
["@semantic-release/github", {
14+
"assets": [
15+
{
16+
"path": "./xbow-*.xar",
17+
"name": "xbow-${nextRelease.version}.xar",
18+
"label": "Expath package (xbow-${nextRelease.version}.xar)"
19+
}
20+
]
21+
}]
22+
]
23+
}

0 commit comments

Comments
 (0)