Skip to content

Themeroller: Fix alpha treatment in icons #191

Themeroller: Fix alpha treatment in icons

Themeroller: Fix alpha treatment in icons #191

Workflow file for this run

name: CI
on:
pull_request:
push:
branches-ignore: "dependabot/**"
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# Node.js 18 is required by jqueryui.com
# Remember to include the version used in Dockerfile!
NODE_VERSION: [18.x, 20.x, 22.x]
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install xsltproc
run: |
sudo apt-get install xsltproc
# When Ubuntu Plucky is available in GitHub Actions, switch to it, remove
# the following section and just install the `imagemagick` package normally
# via apt-get.
- name: Download and build ImageMagick 7
run: |
sudo apt-get install -y build-essential pkg-config \
libjpeg-dev libpng-dev libtiff-dev libwebp-dev
# Replace the version below with the desired release
IM_VERSION="7.1.1-44"
wget https://download.imagemagick.org/ImageMagick/download/releases/ImageMagick-${IM_VERSION}.tar.xz
tar -xf ImageMagick-${IM_VERSION}.tar.xz
cd ImageMagick-${IM_VERSION}
./configure
make -j$(nproc)
sudo make install
sudo ldconfig
- name: Use Node.js ${{ matrix.NODE_VERSION }}
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
with:
node-version: ${{ matrix.NODE_VERSION }}
- name: Cache
uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-npm-lock-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-npm-lock-
${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-
${{ runner.os }}-node-
${{ runner.os }}-
- name: Install dependencies
run: |
npm ci
- name: Prepare for tests
run: |
./node_modules/.bin/grunt prepare
- name: Run tests
run: |
npm test