Skip to content

Commit

Permalink
Release 4.0.0
Browse files Browse the repository at this point in the history
Release 4.0.0
  • Loading branch information
alexandrebouthinon authored Jan 25, 2022
2 parents 169f534 + dc359ed commit 9585f54
Show file tree
Hide file tree
Showing 45 changed files with 6,531 additions and 4,412 deletions.
64 changes: 0 additions & 64 deletions .dev/docker-compose.yml

This file was deleted.

17 changes: 0 additions & 17 deletions .dev/grafana.yml

This file was deleted.

8 changes: 0 additions & 8 deletions .dev/kuzzlerc

This file was deleted.

10 changes: 0 additions & 10 deletions .dev/pm2.json

This file was deleted.

48 changes: 0 additions & 48 deletions .dev/run.sh

This file was deleted.

11 changes: 11 additions & 0 deletions .github/actions/functional-tests/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Functional Tests
description: Run Functional Tests
runs:
using: "composite"
steps:
- name: Run Docker Compose stack
run: docker compose up -d
shell: bash
- name: Run tests
run: npm run test:functional
shell: bash
30 changes: 26 additions & 4 deletions .github/workflows/pull_request.workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,13 @@ jobs:
${{ runner.os }}-
- uses: actions/[email protected]
with:
node-version: "12"
node-version: "14"
- uses: ./.github/actions/lint

unit-tests:
name: Unit Tests
runs-on: ubuntu-18.04
timeout-minutes: 30
needs: [lint]
steps:
- uses: actions/checkout@v2
- name: Cache node modules
Expand All @@ -45,5 +44,28 @@ jobs:
${{ runner.os }}-
- uses: actions/[email protected]
with:
node-version: "12"
- uses: ./.github/actions/unit-tests
node-version: "14"
- uses: ./.github/actions/unit-tests

functional-tests:
name: Functional Tests
runs-on: ubuntu-18.04
timeout-minutes: 30
needs: ['unit-tests', lint]
steps:
- uses: actions/checkout@v2
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- uses: actions/[email protected]
with:
node-version: "14"
- uses: ./.github/actions/functional-tests
28 changes: 25 additions & 3 deletions .github/workflows/push_dev.workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,13 @@ jobs:
${{ runner.os }}-
- uses: actions/[email protected]
with:
node-version: "12"
node-version: "14"
- uses: ./.github/actions/lint

unit-tests:
name: Unit Tests
runs-on: ubuntu-18.04
timeout-minutes: 30
needs: [lint]
steps:
- uses: actions/checkout@v2
- name: Cache node modules
Expand All @@ -48,5 +47,28 @@ jobs:
${{ runner.os }}-
- uses: actions/[email protected]
with:
node-version: "12"
node-version: "14"
- uses: ./.github/actions/unit-tests

functional-tests:
name: Functional Tests
runs-on: ubuntu-18.04
timeout-minutes: 30
needs: [unit-tests, lint]
steps:
- uses: actions/checkout@v2
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- uses: actions/[email protected]
with:
node-version: "14"
- uses: ./.github/actions/functional-tests
32 changes: 27 additions & 5 deletions .github/workflows/push_master.workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,13 @@ jobs:
${{ runner.os }}-
- uses: actions/[email protected]
with:
node-version: "12"
node-version: "14"
- uses: ./.github/actions/lint

unit-tests:
name: Unit Tests
runs-on: ubuntu-18.04
timeout-minutes: 30
needs: [lint]
steps:
- uses: actions/checkout@v2
- name: Cache node modules
Expand All @@ -48,13 +47,36 @@ jobs:
${{ runner.os }}-
- uses: actions/[email protected]
with:
node-version: "12"
node-version: "14"
- uses: ./.github/actions/unit-tests

functional-tests:
name: Functional Tests
runs-on: ubuntu-18.04
timeout-minutes: 30
needs: ['unit-tests', lint]
steps:
- uses: actions/checkout@v2
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- uses: actions/[email protected]
with:
node-version: "14"
- uses: ./.github/actions/functional-tests

npm-deploy:
name: Publish Package to NPM.js
runs-on: ubuntu-18.04
needs: [lint, unit-tests]
needs: [functional-tests]
steps:
- uses: actions/checkout@v2
- name: Cache node modules
Expand All @@ -73,7 +95,7 @@ jobs:
${{ runner.os }}-
- uses: actions/setup-node@v1
with:
node-version: '12.x'
node-version: '14.x'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm publish
Expand Down
3 changes: 2 additions & 1 deletion .mocharc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
"recursive": true,
"slow": 2000,
"timeout": 10000,
"require": ["should-sinon", "ts-node/register"]
"require": ["ts-node/register"],
"spec": "./test/**/*.spec.ts"
}
Loading

0 comments on commit 9585f54

Please sign in to comment.