Files
ipwa/.gitea/workflows/test.yaml
Jan Szumotalski fa126e02de
All checks were successful
IPWA Tests / Run Angular tests (22) (push) Successful in 5m12s
actions: correct browser
2025-06-19 10:55:03 +02:00

43 lines
1.2 KiB
YAML

name: IPWA Tests
run-name: ${{ gitea.actor }} is testing out IPWA
on: [push]
jobs:
Run Angular tests:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22]
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Cache node modules
uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{matrix.node-version}}
cache: 'npm'
cache-dependency-path: package-lock.json
- name: Setup Chrome
uses: browser-actions/setup-chrome@v1.7.3
id: setup-chrome
with:
install-dependencies: true
- name: Install node dependencies
run: npm ci
- name: Echo chrome path
run: |
echo "$CHROME_BIN"
env:
CHROME_BIN: ${{steps.setup-chrome.outputs.chrome-path}}
- name: Run tests
run: npm run ci
env:
CHROME_BIN: ${{steps.setup-chrome.outputs.chrome-path}}