Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1.0.0 #214

Merged
merged 42 commits into from
Dec 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
1260e57
chore: update the generated compose files
Kuruyia Apr 5, 2024
605931a
test: fix semver regex
Kuruyia Apr 5, 2024
937c921
feat: add nicer result logs for PaaS snapshot commands (#207)
Kuruyia May 13, 2024
de9338c
Merge pull request #206 from kuzzleio/chore/services-compose
rolljee Jun 4, 2024
f0cf558
Make use of the proper api to avoid warning printed by kuzzle (#208)
rolljee Jun 24, 2024
91ead60
Remove paas commands
rolljee Sep 16, 2024
46228a5
Update upload artefact version to @v4
rolljee Sep 16, 2024
8dc315e
Update download artefact version to @v4
rolljee Sep 16, 2024
e23617d
Merge pull request #209 from kuzzleio/remove-paas-kommands
rolljee Sep 17, 2024
f83717b
fix: scaffold command should delete .git folder
rolljee Dec 11, 2024
8c6676b
Removing unused function for paas
rolljee Dec 11, 2024
633e242
feat: Add semantic release
rolljee Dec 11, 2024
ba8493b
fix: ci cd files
rolljee Dec 11, 2024
00310c8
chore: package-lock.json
rolljee Dec 11, 2024
216acb8
fix: ci is passing locally
rolljee Dec 11, 2024
913223d
fix: add container_name in docker compose for tests
rolljee Dec 11, 2024
50e51a6
chore: ci
rolljee Dec 11, 2024
d238c49
chore: Use npm install instead of npm ci for fn tests
rolljee Dec 11, 2024
faf7f2d
chore: ci cd
rolljee Dec 11, 2024
d2122ce
fix: doctor.ts type error
rolljee Dec 11, 2024
e008d87
chore: rename sdk file so it is triggered first
rolljee Dec 11, 2024
378dc31
chore: comment Impersonate an user, it works locally but not in ci
rolljee Dec 11, 2024
daf4823
Merge pull request #212 from kuzzleio/feat/add-semantic-release
rolljee Dec 11, 2024
5643114
Merge branch '1-dev' into fix/refactoring-paas-files
rolljee Dec 11, 2024
8b50dc6
Merge branch '1-dev' into fix/scaffold-command
rolljee Dec 11, 2024
f38f4a7
Merge pull request #211 from kuzzleio/fix/refactoring-paas-files
rolljee Dec 11, 2024
fb89301
Merge pull request #210 from kuzzleio/fix/scaffold-command
rolljee Dec 11, 2024
29f0e2f
fix: impersonate test
rolljee Dec 13, 2024
945573e
Add doco logs to check why it fail
rolljee Dec 13, 2024
b0e6d85
use proper cucumber test
rolljee Dec 13, 2024
19ff7de
Add @security tags
rolljee Dec 13, 2024
9eeacb1
Testing
rolljee Dec 13, 2024
5547114
add logs to debug
rolljee Dec 13, 2024
fd18532
Callback executed too late
rolljee Dec 13, 2024
6e19358
rewrite using promise based funnction
rolljee Dec 13, 2024
eee7900
update impersonate for testing
rolljee Dec 13, 2024
09a166d
fix: working tests
rolljee Dec 13, 2024
3d116de
Merge pull request #213 from kuzzleio/fix/impersonate-test
rolljee Dec 16, 2024
5acf769
fix: semantic release file had the wrong name
rolljee Dec 17, 2024
294ed81
fix: Remove --omit=dev in release
rolljee Dec 17, 2024
6b4b949
fix: It should now use the proper GH_TOKEN
rolljee Dec 17, 2024
13b70a2
chore(release): 1.0.0-beta.1 [skip ci]
semantic-release-bot Dec 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .github/actions/build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@ description: Run Build
runs:
using: "composite"
steps:
- name: update npm
run: npm install -g npm
shell: bash
- name: Install deps
run: npm ci
shell: bash

- name: Build and package the application
run: npm run build && npm pack
shell: bash
4 changes: 1 addition & 3 deletions .github/actions/es-lint/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@ description: Run ESLint
runs:
using: "composite"
steps:
- name: update npm
run: npm install -g npm
shell: bash
- name: Install deps
run: npm ci
shell: bash

- name: Run lint tests
run: npm run test:lint
shell: bash
3 changes: 0 additions & 3 deletions .github/actions/functional-test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ inputs:
runs:
using: "composite"
steps:
- name: update npm
run: npm install -g npm
shell: bash
- name: Run functional test
shell: bash
run: |
Expand Down
71 changes: 23 additions & 48 deletions .github/workflows/pull_request.workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,79 +6,54 @@ jobs:
lint:
name: Lint
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [18, 20]
steps:
- uses: actions/checkout@v3
- name: Cache node modules
uses: actions/cache@v3
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/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: ${{ matrix.node-version }}
- uses: ./.github/actions/es-lint

build:
name: Build
runs-on: ubuntu-22.04
needs: [lint]
strategy:
matrix:
node-version: [18, 20]
steps:
- uses: actions/checkout@v3
- name: Cache node modules
uses: actions/cache@v3
env:
cache-name: cache-node-modules
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
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/setup-node@v3
with:
node-version: 18
node-version: ${{ matrix.node-version }}
- uses: ./.github/actions/build
- name: Store build archive as artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: kourou-build
name: kourou-build-${{ matrix.node-version }}
path: ./kourou-*.tgz

functional-test:
name: Functional Test - ${{ matrix.test-set }}
name: Functional Tests
runs-on: ubuntu-22.04
needs: [build]
strategy:
matrix:
node-version: [18, 20]
test-set: [stdout, cucumber]
steps:
- uses: actions/checkout@v3
- name: Cache node modules
uses: actions/cache@v3
env:
cache-name: cache-node-modules
NODE_ENV: test
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/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: ${{ matrix.node-version }}

- name: Recover previously built Kourou
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: kourou-build
name: kourou-build-${{ matrix.node-version }}

- name: Unpack and prepare artifact for tests
run: |
tar xfz ./kourou-*.tgz
Expand Down
95 changes: 95 additions & 0 deletions .github/workflows/push_branches.workflow.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
name: Run tests

on:
push:
branches:
- master
- beta

jobs:
lint:
name: Lint
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [18, 20]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- uses: ./.github/actions/es-lint

build:
name: Build
runs-on: ubuntu-22.04
needs: [lint]
strategy:
matrix:
node-version: [18, 20]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- uses: ./.github/actions/build
- name: Store build archive as artifact
uses: actions/upload-artifact@v4
with:
name: kourou-build-${{ matrix.node-version }}
path: ./kourou-*.tgz

functional-test:
name: Functional Tests
runs-on: ubuntu-22.04
needs: [build]
strategy:
matrix:
node-version: [18, 20]
test-set: [stdout, cucumber]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Recover previously built Kourou
uses: actions/download-artifact@v4
with:
name: kourou-build-${{ matrix.node-version }}

- name: Unpack and prepare artifact for tests
run: |
tar xfz ./kourou-*.tgz
cp -fr .mocharc.json .nycrc tsconfig.json features test package/
- uses: ./.github/actions/functional-test
with:
test-set: ${{ matrix.test-set }}

release:
name: Release process
runs-on: ubuntu-22.04
needs: [functional-test]
permissions:
contents: write
issues: write
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "lts/*"

- name: Install dependencies
run: |
npm clean-install
npm run build

- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SEMANTIC_RELEASE_SLACK_WEBHOOK: ${{ secrets.SEMANTIC_RELEASE_SLACK_WEBHOOK }}
run: npx semantic-release
91 changes: 0 additions & 91 deletions .github/workflows/push_dev.workflow.yml

This file was deleted.

Loading
Loading