mirror of
https://github.com/joinmarket-webui/jam.git
synced 2026-08-13 12:33:26 +02:00
chore(ci): cleanup build action
This commit is contained in:
parent
c4fd619af3
commit
f6011108a3
2 changed files with 15 additions and 17 deletions
26
.github/workflows/build.yml
vendored
26
.github/workflows/build.yml
vendored
|
|
@ -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
6
package-lock.json
generated
|
|
@ -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": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue