-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: add angular * chore: fix naming issue * chore: adjust port for ng test * chore: disable ng unit test * chore: adjust cypress config * chore: update components * chore: update update screenshots * chore: update ci * chore(): update base images * chore: trigger build * chore: adjust ng test * chore: add docs job * chore: remove comments * chore: remove comments --------- Co-authored-by: hirsch88 <hirsch88@users.noreply.github.com>
- Loading branch information
Showing
88 changed files
with
47,637 additions
and
34,201 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,18 @@ | ||
name: 'Build Docs' | ||
description: 'Build Docs' | ||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: Install Dependencies | ||
run: npm ci | ||
shell: bash | ||
|
||
- name: Build | ||
run: npm run storybook | ||
shell: bash | ||
|
||
- uses: ./.github/workflows/actions/upload-archive | ||
with: | ||
name: storybook | ||
output: StorybookBuild.zip | ||
paths: storybook |
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
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,46 @@ | ||
name: 'Publish Docs' | ||
description: 'Publish Docs' | ||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: Declare some variables | ||
id: vars | ||
shell: bash | ||
run: | | ||
echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" | ||
echo "::set-output name=sha_short::$(git rev-parse --short HEAD)" | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v1 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
|
||
- name: Login to DockerHub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: Build and push | ||
id: docker_build | ||
uses: docker/build-push-action@v2 | ||
with: | ||
push: true | ||
tags: baloise/design-system-docs:${{ steps.vars.outputs.sha_short }},baloise/design-system-docs:latest | ||
|
||
- name: Deploy | ||
uses: addnab/docker-run-action@v3 | ||
with: | ||
image: baloise/gitopscli:5.4.0 | ||
run: | | ||
gitopscli deploy \ | ||
--git-provider-url https://github.com \ | ||
--username ${{ secrets.INCUBATOR_GITHUB_USER }} \ | ||
--password ${{ secrets.INCUBATOR_GITHUB_TOKEN }} \ | ||
--git-user "Baloise Incubator" \ | ||
--git-email "incubator@baloise.dev" \ | ||
--organisation "baloise-incubator" \ | ||
--repository-name "okd4-example-apps" \ | ||
--file "baloise-design-system-docs-test/values.yaml" \ | ||
--values "{designsystem.image.tag: ${{ steps.vars.outputs.sha_short }}}" |
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,39 @@ | ||
name: 'Setup Release' | ||
description: 'Setup Release' | ||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: Git Identity | ||
run: | | ||
git config --global user.name 'baopso' | ||
git config --global user.email 'Group.CH_Open-Source@baloise.ch' | ||
git remote set-url origin https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$GITHUB_REPOSITORY | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Setup NodeJS | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
cache: 'npm' | ||
cache-dependency-path: '**/package-lock.json' | ||
|
||
- name: Update NPM registry | ||
run: npm run registry | ||
shell: bash | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Build | ||
run: npm run build:force | ||
env: | ||
BAL_DS_RELEASE: true | ||
|
||
- name: Create .npmrc | ||
run: | | ||
cat << EOF > "$HOME/.npmrc" | ||
//registry.npmjs.org/:_authToken=$NPM_TOKEN | ||
EOF | ||
env: | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |
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,30 @@ | ||
name: 'Angular Setup' | ||
description: 'Angular Setup' | ||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: Disable Husky | ||
run: npm pkg delete scripts.prepare | ||
shell: bash | ||
|
||
- name: Install Dependencies | ||
run: npm ci | ||
working-directory: ./apps/angular | ||
shell: bash | ||
|
||
- name: Install Cypress | ||
run: npm run cy:install | ||
working-directory: ./apps/angular | ||
shell: bash | ||
|
||
- uses: ./.github/workflows/actions/download-archive | ||
with: | ||
name: test-ng-e2e | ||
path: ./apps/angular/dist | ||
filename: TestNgE2eBuild.zip | ||
|
||
# - uses: ./.github/workflows/actions/download-archive | ||
# with: | ||
# name: components | ||
# path: ./packages/components | ||
# filename: ComponentsBuild.zip |
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,21 @@ | ||
name: 'Test Angular' | ||
description: 'Test Angular' | ||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: Run Cypress tests 🧪 | ||
uses: cypress-io/github-action@v5 | ||
with: | ||
start: npm run cy:start | ||
wait-on: 'http://localhost:4200' | ||
working-directory: apps/angular | ||
install: false | ||
browser: chrome | ||
|
||
- name: Upload snapshots | ||
uses: actions/upload-artifact@v3 | ||
if: failure() | ||
with: | ||
name: cypress-snapshots-angular | ||
path: apps/angular/cypress/snapshots | ||
|
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
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
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
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.