Skip to content

Commit f6d5d25

Browse files
czemarAlexxiiaSamPanDonte
authored
Version 1.0.0-beta-1 (#32)
* GitHub first release environements, e2e tests fixes * fix: Fix angular configuration * chore: Change deployments paths * migrate to subdomain * change dev environment configuration * Update README, add codecov action * Combine E2E coverage * tests, icons path rework * fix e2e coverage directory * Test new workflows * Unit tests workflow * Add unit tests checkout * Dev workflow * Simple prod workflow * WFLOW-661 Apply GitHub backend changes (#33) * WFLOW-661 Apply backend changes * WFLOW-661 Change authorization link * Remove / from end of url in task.service * Add missing slash in /api endpoint * reCaptcha V3 support * Sonar dev configuration fix * Add code coverage file to sonar action * Exclude spec files from sonar analysis * Github actions docs deployment * dev-push.yml changes * dev-push.yml changes * audit build fix * Textarea fix, sidebar resizing * WFLOW-742: Comments (#34) * Modify E2E action * Move out E2E tests from container * bugfixes: user cache, disabled button * Slack integration service documentation + docs builders documentation * Docs update * Add workspaces menu in sidebar * Bump version * Fix task pipe test * Bump version to 1.0.0-beta-1 Co-authored-by: Alexxiia <[email protected]> Co-authored-by: Bartosz Wawrzyniak <[email protected]>
1 parent cbba94c commit f6d5d25

File tree

310 files changed

+4250
-1032
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

310 files changed

+4250
-1032
lines changed

.github/workflows/_app.build.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Build application
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
configuration:
7+
required: true
8+
type: string
9+
10+
jobs:
11+
build:
12+
# need: [environment]
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
# Checkout repository
17+
- name: Checkout
18+
uses: actions/checkout@v3
19+
20+
# Install Node.js version 16.x
21+
- name: Install Node.js version 16.x
22+
uses: actions/setup-node@v3
23+
with:
24+
node-version: '16.x'
25+
26+
# Cache node modules
27+
- name: Cache node modules
28+
id: cache-node-modules
29+
uses: actions/cache@v3
30+
env:
31+
cache-name: cache-node-modules-yarn
32+
with:
33+
path: node_modules
34+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
35+
- name: Install yarn
36+
run: npm i -g yarn
37+
38+
# Build
39+
- name: Build ⚙️
40+
run: yarn build:${{ inputs.configuration }}
41+
42+
# Upload artifacts
43+
- name: Upload artifacts
44+
uses: actions/upload-artifact@v2
45+
with:
46+
name: build-${{ inputs.configuration }}
47+
path: dist

.github/workflows/_app.deploy.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Deploy to vernite server
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
configuration:
7+
required: true
8+
type: string
9+
secrets:
10+
SSH_PRIVATE_KEY:
11+
required: true
12+
13+
jobs:
14+
deploy:
15+
# needs: [build]
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
# Checkout repository
20+
- name: Checkout
21+
uses: actions/checkout@v3
22+
23+
# Download artifacts
24+
- name: Download artifacts
25+
uses: actions/download-artifact@v2
26+
with:
27+
name: build-${{ inputs.configuration }}
28+
path: dist
29+
30+
# Copy default redirect page
31+
- name: Redirect page copy
32+
run: cp src/redirect.html dist/vernite/index.html
33+
34+
# Deploy to server using rsync
35+
- name: Deploy app 🚀
36+
uses: easingthemes/ssh-deploy@main
37+
env:
38+
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
39+
ARGS: "-rltgoDzvO --delete"
40+
SOURCE: "./dist/vernite/"
41+
REMOTE_HOST: '51.83.255.98'
42+
REMOTE_PORT: '2224'
43+
REMOTE_USER: 'frontend'
44+
TARGET: '/var/www/html/${{ inputs.configuration }}'
45+
EXCLUDE: "/dist/, /node_modules/"

.github/workflows/_audit.build.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
on:
2+
workflow_dispatch:
3+
workflow_call:
4+
5+
jobs:
6+
audit-build:
7+
name: Audit build
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
# Checkout repository
12+
- name: Checkout
13+
uses: actions/checkout@v3
14+
15+
# Install Node.js version 16.x
16+
- name: Install Node.js version 16.x
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: '16.x'
20+
21+
# Cache node modules
22+
- name: Cache node modules
23+
id: cache-node-modules
24+
uses: actions/cache@v3
25+
env:
26+
cache-name: cache-node-modules-yarn
27+
with:
28+
path: node_modules
29+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
30+
- name: Install yarn
31+
run: npm i -g yarn
32+
33+
# Create audit directory
34+
- name: Create audit directory
35+
run: mkdir -p documentation/audit
36+
37+
# Run audit build
38+
- name: Audit build
39+
run: yarn audit:build
40+
41+
# Upload artifacts
42+
- name: Upload artifacts
43+
uses: actions/upload-artifact@v2
44+
with:
45+
name: audit-report
46+
path: documentation/audit
47+
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
on:
2+
workflow_dispatch:
3+
workflow_call:
4+
5+
jobs:
6+
build-badges:
7+
name: Build badges
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
# Checkout repository
12+
- name: Checkout
13+
uses: actions/checkout@v3
14+
15+
# Install Node.js version 16.x
16+
- name: Install Node.js version 16.x
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: '16.x'
20+
21+
# Cache node modules
22+
- name: Cache node modules
23+
id: cache-node-modules
24+
uses: actions/cache@v3
25+
env:
26+
cache-name: cache-node-modules-yarn
27+
with:
28+
path: node_modules
29+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
30+
- name: Install yarn
31+
run: npm i -g yarn
32+
33+
# Download artifacts
34+
- name: Download artifacts
35+
uses: actions/download-artifact@v2
36+
with:
37+
name: documentation
38+
path: documentation
39+
40+
# Download artifacts
41+
- name: Download artifacts
42+
uses: actions/download-artifact@v2
43+
with:
44+
name: unit-tests
45+
path: coverage
46+
47+
# Build badges
48+
- name: Badges build
49+
run: yarn badges:build
50+
51+
# Upload artifacts
52+
- name: Upload artifacts
53+
uses: actions/upload-artifact@v2
54+
with:
55+
name: badges
56+
path: badges
57+

.github/workflows/_docs.build.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
on:
2+
workflow_dispatch:
3+
workflow_call:
4+
inputs:
5+
configuration:
6+
required: true
7+
type: string
8+
9+
jobs:
10+
build-storybook:
11+
name: Build storybook
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
# Checkout repository
16+
- name: Checkout
17+
uses: actions/checkout@v3
18+
19+
# Install Node.js version 16.x
20+
- name: Install Node.js version 16.x
21+
uses: actions/setup-node@v3
22+
with:
23+
node-version: '16.x'
24+
25+
# Cache node modules
26+
- name: Cache node modules
27+
id: cache-node-modules
28+
uses: actions/cache@v3
29+
env:
30+
cache-name: cache-node-modules-yarn
31+
with:
32+
path: node_modules
33+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
34+
- name: Install yarn
35+
run: npm i -g yarn
36+
37+
# Build docs
38+
- name: Docs build
39+
run: yarn docs:build:${{ inputs.configuration }}
40+
41+
# Upload artifacts
42+
- name: Upload artifacts
43+
uses: actions/upload-artifact@v2
44+
with:
45+
name: documentation
46+
path: |
47+
documentation
48+
documentation.json
49+

.github/workflows/_docs.deploy.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: Deploy docs to GitHub Pages
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
configuration:
7+
required: true
8+
type: string
9+
secrets:
10+
SSH_PRIVATE_KEY:
11+
required: true
12+
13+
jobs:
14+
deploy:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
# Checkout repository
19+
- name: Checkout
20+
uses: actions/checkout@v3
21+
22+
# Download artifacts (storybook)
23+
- name: Download artifacts (storybook)
24+
uses: actions/download-artifact@v2
25+
with:
26+
name: documentation
27+
path: ./
28+
29+
# Download artifacts (coverage)
30+
- name: Download artifacts (coverage)
31+
uses: actions/download-artifact@v2
32+
with:
33+
name: unit-tests
34+
path: documentation/coverage
35+
36+
# Download artifacts (audit report)
37+
- name: Download artifacts (coverage)
38+
uses: actions/download-artifact@v2
39+
with:
40+
name: audit-report
41+
path: documentation/audit
42+
43+
# Get app version from package.json
44+
- name: Get app version
45+
id: get_version
46+
run: echo VERSION=$(node -p -e "require('./package.json').version") >> $GITHUB_ENV
47+
48+
# Deploy documentation to Github pages
49+
- name: Deploy documentation 📄
50+
uses: JamesIves/[email protected]
51+
with:
52+
branch: gh-pages
53+
folder: documentation
54+
target-folder: ${{ env.VERSION }}
55+
clean: false
56+
57+
# Deploy documentation index to Github pages
58+
- name: Deploy docs-pages
59+
uses: JamesIves/[email protected]
60+
with:
61+
branch: gh-pages
62+
folder: docs-pages
63+
clean: false

0 commit comments

Comments
 (0)