-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from ZEISS/ci-tests
Ci tests
- Loading branch information
Showing
17 changed files
with
3,271 additions
and
7,273 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,49 @@ | ||
name: Build, Unit Test & Deploy | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
# define node version | ||
strategy: | ||
matrix: | ||
node-version: [18.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
# setting up node | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'npm' | ||
|
||
# install | ||
- name: Install Dependencies | ||
if: steps.cache-nodemodules.outputs.cache-hit != 'true' | ||
run: | | ||
npm ci | ||
# build | ||
- name: Build | ||
run: | | ||
npm run build:prod | ||
# unit tests (single run - headless chrome) | ||
- name: Unit Tests | ||
run: | | ||
npm run test:ci | ||
# deploy recent build and push it to branch 'gh-pages' | ||
# this will trigger the action 'pages build & deployment' to host the recent build | ||
- name: Deploy to GitHub Pages | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./dist/angular-redux-shop | ||
publish_branch: gh-pages |
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,27 @@ | ||
name: E2E Testing | ||
|
||
on: deployment | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
# checkout and setup node | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
|
||
# install dependencies | ||
- name: Install | ||
run: npm ci | ||
|
||
# run wdio test on following url: 'https://zeiss.github.io/angular-styleguide/' | ||
- name: WebdriverIO Test | ||
run: npm run e2e:wdio:ci | ||
|
||
# run playwright test on following url: 'https://zeiss.github.io/angular-styleguide/' | ||
- name: Playwright Test | ||
run: npm run e2e:playwright:ci |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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.