chore(ci): cleanup build action

This commit is contained in:
theborakompanioni 2025-11-16 13:34:02 +01:00
parent c4fd619af3
commit f6011108a3
No known key found for this signature in database
GPG key ID: E8070AF0053AAC0D
2 changed files with 15 additions and 17 deletions

View file

@ -1,17 +1,10 @@
name: Build
on:
# Run the build for pushes and pull requests targeting master and devel
push:
branches:
- master
- devel
- v2
branches: [master, devel, v2]
pull_request:
branches:
- master
- devel
- v2
branches: [master, devel, v2]
jobs:
build:
@ -23,16 +16,19 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
# Setup Node
- name: Setup (Node.js ${{ matrix.node-version }})
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install
run: npm ci
run: npm clean-install --no-audit --no-fund
- name: Get installed Playwright version
id: playwright-version
run: echo "PLAYWRIGHT_VERSION=$(node -e "console.log(require('./package-lock.json').dependencies['@playwright/test'].version)")" >> $GITHUB_ENV
- name: Cache Playwright
uses: actions/cache@v3
id: playwright-cache
@ -40,16 +36,18 @@ jobs:
path: |
~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-${{ env.PLAYWRIGHT_VERSION }}
- run: npx playwright install --with-deps
if: steps.playwright-cache.outputs.cache-hit != 'true'
- run: npx playwright install-deps
if: steps.playwright-cache.outputs.cache-hit != 'true'
# Checks
- name: Lint
run: npm run lint
# Test
- name: Test
run: npm test
# Build
- name: Build
run: npm run build

6
package-lock.json generated
View file

@ -5512,9 +5512,9 @@
"license": "MIT"
},
"node_modules/js-yaml": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz",
"integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==",
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz",
"integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==",
"dev": true,
"license": "MIT",
"dependencies": {