Skip to content

Commit 995242c

Browse files
authored
Merge pull request #1096 from jaime-ez/github-actions-ci
GitHub actions ci
2 parents 46e2c5f + c546d58 commit 995242c

File tree

8 files changed

+163
-148
lines changed

8 files changed

+163
-148
lines changed

.github/workflows/lint-test.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: lint-and-test
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
node-version: [12.x, 14.x]
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Use Node.js ${{ matrix.node-version }}
14+
uses: actions/setup-node@v1
15+
with:
16+
node-version: ${{ matrix.node-version }}
17+
- run: npm install
18+
- run: npm run lint
19+
- run: npm run test:all:coverage
20+
- run: npm run e2e:uws
21+
- name: Coveralls
22+
if: startsWith(matrix.node-version, '12.')
23+
uses: coverallsapp/github-action@master
24+
with:
25+
github-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
name: release
2+
3+
on:
4+
push:
5+
# Sequence of patterns matched against refs/tags
6+
tags:
7+
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
8+
9+
jobs:
10+
create_release:
11+
name: Create release
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Create release
15+
id: create_release
16+
uses: actions/create-release@v1
17+
env:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
with:
20+
tag_name: ${{ github.ref }}
21+
release_name: Release ${{ github.ref }}
22+
23+
npm_publish:
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/checkout@v2
27+
# Setup .npmrc file to publish to npm
28+
- uses: actions/setup-node@v1
29+
with:
30+
node-version: '12.x'
31+
registry-url: 'https://registry.npmjs.org'
32+
- run: npm install
33+
- run: npm run lint
34+
- run: npm run test
35+
- run: npm run tsc
36+
- run: npm publish --access public
37+
env:
38+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
39+
40+
linux:
41+
runs-on: ubuntu-latest
42+
steps:
43+
- name: Checkout reposistory
44+
uses: actions/checkout@v2
45+
- name: Checkout submodules
46+
run: git submodule update --init --recursive
47+
- name: Use Node.js
48+
env:
49+
DEFAULT_DELAY: 50
50+
uses: actions/setup-node@v1
51+
with:
52+
node-version: '12.x'
53+
- run: npm install
54+
- run: npm run lint
55+
- run: npm run test
56+
- run: bash ./scripts/package.sh true true
57+
- name: Upload Release Asset
58+
uses: alexellis/[email protected]
59+
env:
60+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
61+
with:
62+
asset_paths: '["build/*/*.tar.gz"]'
63+
64+
windows:
65+
runs-on: windows-latest
66+
steps:
67+
- name: Checkout reposistory
68+
uses: actions/checkout@v2
69+
- name: Checkout submodules
70+
run: git submodule update --init --recursive
71+
- name: Use Node.js
72+
env:
73+
DEFAULT_DELAY: 50
74+
uses: actions/setup-node@v1
75+
with:
76+
node-version: '12.x'
77+
- run: npm install
78+
- run: npm run lint
79+
- run: npm run test
80+
- run: bash ./scripts/package.sh true true
81+
- name: Upload Release Asset
82+
uses: alexellis/[email protected]
83+
env:
84+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
85+
with:
86+
asset_paths: '["build/*/*.zip"]'
87+
88+
macos:
89+
runs-on: macos-latest
90+
steps:
91+
- name: Checkout reposistory
92+
uses: actions/checkout@v2
93+
- name: Checkout submodules
94+
run: git submodule update --init --recursive
95+
- name: Use Node.js
96+
env:
97+
DEFAULT_DELAY: 50
98+
uses: actions/setup-node@v1
99+
with:
100+
node-version: '12.x'
101+
- run: npm install
102+
- run: npm run lint
103+
- run: npm run test
104+
- run: bash ./scripts/package.sh true true
105+
- name: Upload Release Asset
106+
uses: alexellis/[email protected]
107+
env:
108+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
109+
with:
110+
asset_paths: '["build/*/*.pkg"]'
111+
112+
docker:
113+
runs-on: ubuntu-latest
114+
steps:
115+
- uses: actions/checkout@v2
116+
- uses: actions/setup-node@v1
117+
with:
118+
node-version: '12.x'
119+
- run: DOCKER_PASSWORD=${{ secrets.DOCKERHUB_TOKEN }} DOCKER_USERNAME=${{ secrets.DOCKERHUB_USERNAME }} bash scripts/docker.sh

.gitmodules

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,34 @@
33
url = https://github.com/deepstreamIO/deepstream.io-e2e.git
44
[submodule "connectors/cache/redis"]
55
path = connectors/cache/redis
6-
url = git@github.com:deepstreamIO/deepstream.io-cache-redis.git
6+
url = https://github.com/deepstreamIO/deepstream.io-cache-redis.git
77
[submodule "connectors/cache/memcached"]
88
path = connectors/cache/memcached
9-
url = git@github.com:deepstreamIO/deepstream.io-cache-memcached.git
9+
url = https://github.com/deepstreamIO/deepstream.io-cache-memcached.git
1010
[submodule "connectors/cache/hazelcast"]
1111
path = connectors/cache/hazelcast
12-
url = git@github.com:deepstreamIO/deepstream.io-cache-hazelcast.git
12+
url = https://github.com/deepstreamIO/deepstream.io-cache-hazelcast.git
1313
[submodule "connectors/storage/postgres"]
1414
path = connectors/storage/postgres
15-
url = git@github.com:deepstreamIO/deepstream.io-storage-postgres.git
15+
url = https://github.com/deepstreamIO/deepstream.io-storage-postgres.git
1616
[submodule "connectors/storage/rethinkdb"]
1717
path = connectors/storage/rethinkdb
18-
url = git@github.com:deepstreamIO/deepstream.io-storage-rethinkdb.git
18+
url = https://github.com/deepstreamIO/deepstream.io-storage-rethinkdb.git
1919
[submodule "connectors/storage/mongodb"]
2020
path = connectors/storage/mongodb
21-
url = git@github.com:deepstreamIO/deepstream.io-storage-mongodb.git
21+
url = https://github.com/deepstreamIO/deepstream.io-storage-mongodb.git
2222
[submodule "connectors/storage/elasticsearch"]
2323
path = connectors/storage/elasticsearch
24-
url = git@github.com:deepstreamIO/deepstream.io-storage-elasticsearch.git
24+
url = https://github.com/deepstreamIO/deepstream.io-storage-elasticsearch.git
2525
[submodule "client"]
2626
path = client
27-
url = git@github.com:deepstreamIO/deepstream.io-client-js.git
27+
url = https://github.com/deepstreamIO/deepstream.io-client-js.git
2828
[submodule "connectors/clusterNode/redis"]
2929
path = connectors/clusterNode/redis
30-
url = git@github.com:deepstreamIO/deepstream.io-clusternode-redis.git
30+
url = https://github.com/deepstreamIO/deepstream.io-clusternode-redis.git
3131
[submodule "connectors/logger/winston"]
3232
path = connectors/logger/winston
33-
url = git@github.com:deepstreamIO/deepstream.io-logger-winston.git
33+
url = https://github.com/deepstreamIO/deepstream.io-logger-winston.git
3434
[submodule "plugins/aws"]
3535
path = plugins/aws
36-
url = git@github.com:deepstreamIO/deepstream.io-plugin-aws.git
36+
url = https://github.com/deepstreamIO/deepstream.io-plugin-aws.git

.travis.yml

Lines changed: 0 additions & 95 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## [5.2.0] - 2021.02.17
2+
3+
### Task
4+
5+
- Github Actions CI/CD
6+
17
## [5.1.8] - 2020.11.25
28

39
### Misc

appveyor.yml

Lines changed: 0 additions & 40 deletions
This file was deleted.

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@deepstream/server",
3-
"version": "5.1.8",
3+
"version": "5.2.0",
44
"description": "a scalable server for realtime webapps",
55
"main": "./dist/src/deepstream.io.js",
66
"bin": {

0 commit comments

Comments
 (0)