Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 15 additions & 8 deletions .github/workflows/validation.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
# This is a basic workflow to help you get started with Actions

name: validation
name: Validation

# Controls when the action will run.
on:
push:
branches: [main]
pull_request:
branches: [main]

types: [opened, synchronize, reopened]
push:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
group: validation-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
Expand Down Expand Up @@ -48,9 +47,17 @@ jobs:
node-version: 22
cache: npm
cache-dependency-path: '**/package-lock.json'
- name: Cache Angular
uses: actions/cache@v5
with:
path: demo/angular/.angular/cache
key: ${{ runner.os }}-angular-${{ hashFiles('demo/angular/package-lock.json') }}-${{ github.sha }}
restore-keys: |
${{ runner.os }}-angular-${{ hashFiles('demo/angular/package-lock.json') }}-
${{ runner.os }}-angular-
- run: npm install
- run: npm run build
- run: npm install && npm run test:ci
- run: npm ci && npm run test:ci
working-directory: demo/angular


Expand Down
Loading