-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
272 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
name: Frontend React CI | ||
|
||
# Events that trigger this workflow | ||
on: [push, pull_request] | ||
|
||
# Defines which tool versions should be used in all workflow jobs | ||
env: | ||
node: '20' | ||
pnpm: '8' | ||
|
||
jobs: | ||
style: | ||
name: Style | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout 📥 | ||
uses: actions/checkout@v3.6.0 | ||
- name: Setup PNPM 💿 | ||
uses: pnpm/action-setup@v2.4.0 | ||
with: | ||
version: ${{ env.pnpm }} | ||
- name: Setup Node 💿 | ||
uses: actions/setup-node@v3.8.2 | ||
with: | ||
node-version: ${{ env.node }} | ||
cache: 'pnpm' | ||
|
||
- name: Install dependencies 📚 | ||
run: pnpm install | ||
working-directory: ./frontend-react | ||
- name: Check code style 🧽 | ||
run: pnpm run ci:style | ||
working-directory: ./frontend-react | ||
|
||
lint: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout 📥 | ||
uses: actions/checkout@v3.6.0 | ||
- name: Setup PNPM 💿 | ||
uses: pnpm/action-setup@v2.4.0 | ||
with: | ||
version: ${{ env.pnpm }} | ||
- name: Setup Node 💿 | ||
uses: actions/setup-node@v3.8.2 | ||
with: | ||
node-version: ${{ env.node }} | ||
cache: 'pnpm' | ||
|
||
- name: Install dependencies 📚 | ||
run: pnpm install | ||
working-directory: ./frontend-react | ||
- name: Run Linter 📑 | ||
run: pnpm run lint | ||
working-directory: ./frontend-react | ||
|
||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout 📥 | ||
uses: actions/checkout@v3.6.0 | ||
- name: Setup PNPM 💿 | ||
uses: pnpm/action-setup@v2.4.0 | ||
with: | ||
version: ${{ env.pnpm }} | ||
- name: Setup Node 💿 | ||
uses: actions/setup-node@v3.8.2 | ||
with: | ||
node-version: ${{ env.node }} | ||
cache: 'pnpm' | ||
|
||
- name: Install dependencies 📚 | ||
run: pnpm install | ||
working-directory: ./frontend-react | ||
- name: Build library 📦 | ||
run: pnpm run build | ||
working-directory: ./frontend-react | ||
- name: Pack library 📦 | ||
run: pnpm pack | ||
working-directory: ./frontend-react | ||
|
||
- name: Upload package artifact 📤 | ||
uses: actions/upload-artifact@v3.1.3 | ||
with: | ||
name: package.tgz | ||
path: ./frontend-react/wuespace-telestion-*.tgz | ||
retention-days: 7 | ||
|
||
unit-test: | ||
name: Unit Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout 📥 | ||
uses: actions/checkout@v3.6.0 | ||
- name: Setup PNPM 💿 | ||
uses: pnpm/action-setup@v2.4.0 | ||
with: | ||
version: ${{ env.pnpm }} | ||
- name: Setup Node 💿 | ||
uses: actions/setup-node@v3.8.2 | ||
with: | ||
node-version: ${{ env.node }} | ||
cache: 'pnpm' | ||
|
||
- name: Install dependencies 📚 | ||
run: pnpm install | ||
working-directory: ./frontend-react | ||
- name: Run unit tests 🛃 | ||
run: | | ||
pnpm run build | ||
pnpm run ci:test | ||
working-directory: ./frontend-react |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,3 +24,6 @@ doc | |
*.njsproj | ||
*.sln | ||
*.sw? | ||
|
||
# packages | ||
*.tgz |
10 changes: 3 additions & 7 deletions
10
frontend-react/features/step_definitions/code-configuration-steps.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,4 @@ | ||
import { Given } from "@cucumber/cucumber"; | ||
import { Given } from '@cucumber/cucumber'; | ||
|
||
Given(/^Default user data exists$/, function() { | ||
|
||
}); | ||
Given(/^No default user data exists$/, function() { | ||
|
||
}); | ||
Given(/^Default user data exists$/, function () {}); | ||
Given(/^No default user data exists$/, function () {}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
import { Then } from "@cucumber/cucumber"; | ||
import { Then } from '@cucumber/cucumber'; | ||
|
||
Then(/^I see an error message$/, function() { | ||
|
||
}); | ||
Then(/^I see the message "([^"]*)"$/, function(message: string) { | ||
Then(/^I see an error message$/, function () {}); | ||
Then(/^I see the message "([^"]*)"$/, function (message: string) { | ||
console.log(message); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
import { Then } from "@cucumber/cucumber"; | ||
import { Then } from '@cucumber/cucumber'; | ||
|
||
Then(/^I see a dashboard$/, function() { | ||
|
||
}); | ||
Then(/^I see a dashboard$/, function () {}); |
30 changes: 8 additions & 22 deletions
30
frontend-react/features/step_definitions/user-data-steps.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,10 @@ | ||
import { Given, Then } from "@cucumber/cucumber"; | ||
import { Given, Then } from '@cucumber/cucumber'; | ||
|
||
Given(/^My user data is up to date$/, function() { | ||
Given(/^My user data is up to date$/, function () {}); | ||
Given(/^I have a dashboard$/, function () {}); | ||
Given(/^My user data is out of date$/, function () {}); | ||
Given(/^I do not have a dashboard$/, function () {}); | ||
Then(/^I have the option to use the default user data$/, function () {}); | ||
Given(/^I am a new user$/, function () {}); | ||
|
||
}); | ||
Given(/^I have a dashboard$/, function() { | ||
|
||
}); | ||
Given(/^My user data is out of date$/, function() { | ||
|
||
}); | ||
Given(/^I do not have a dashboard$/, function() { | ||
|
||
}); | ||
Then(/^I have the option to use the default user data$/, function() { | ||
|
||
}); | ||
Given(/^I am a new user$/, function() { | ||
|
||
}); | ||
|
||
Given(/^I am an existing user$/, function() { | ||
|
||
}); | ||
Given(/^I am an existing user$/, function () {}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
import { When } from "@cucumber/cucumber"; | ||
import { When } from '@cucumber/cucumber'; | ||
|
||
When(/^I log in$/, function() { | ||
|
||
}); | ||
When(/^I log in$/, function () {}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.