Skip to content

Commit

Permalink
ci: add standalone smoketest
Browse files Browse the repository at this point in the history
  • Loading branch information
timdeschryver committed Jul 14, 2023
1 parent d18312f commit b9698f8
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,46 @@ jobs:
- name: Create Angular Project
run: sudo ng new angular-auth-oidc-client-test --skip-git

- name: Npm Install & Install Library from local artefact
run: |
sudo cp -R angular-auth-oidc-client-artefact angular-auth-oidc-client-test/
cd angular-auth-oidc-client-test
sudo npm install --unsafe-perm=true
sudo ng add ./angular-auth-oidc-client-artefact --authority-url-or-tenant-id "my-authority-url" --flow-type "Default config" --use-local-package=true --skip-confirmation
- name: Test Angular Application
working-directory: ./angular-auth-oidc-client-test
run: npm test -- --watch=false --browsers=ChromeHeadless

- name: Build Angular Application
working-directory: ./angular-auth-oidc-client-test
run: sudo npm run build

AngularLatestVersionWithStandaloneSchematics:
needs: build_job
runs-on: ubuntu-latest
name: Angular latest Standalone & Schematics Job
steps:
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 16

- name: Download Artefact
uses: actions/download-artifact@v2
with:
name: angular_auth_oidc_client_artefact
path: angular-auth-oidc-client-artefact

- name: Install AngularCLI globally
run: sudo npm install -g @angular/cli

- name: Show ng Version
run: ng version

- name: Create Angular Project
run: sudo ng new angular-auth-oidc-client-test --skip-git --standalone

- name: Npm Install & Install Library from local artefact
run: |
sudo cp -R angular-auth-oidc-client-artefact angular-auth-oidc-client-test/
Expand Down

0 comments on commit b9698f8

Please sign in to comment.