Test Sticker Creator in CI

This commit is contained in:
Fedor Indutny 2023-12-13 19:34:49 +01:00 committed by GitHub
parent 577baa83d1
commit e14356f580
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 37 additions and 2 deletions

View file

@ -249,6 +249,40 @@ jobs:
with:
path: artifacts
sticker-creator:
name: Sticker Creator
runs-on: ubuntu-latest-8-cores
timeout-minutes: 30
defaults:
run:
working-directory: sticker-creator
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18.17.1'
- run: npm install -g yarn@1.22.10
- name: Install Sticker Creator node_modules
run: yarn install
- name: Build Sticker Creator
run: yarn build
- name: Check Sticker Creator types
run: yarn check:types
- name: Check Sticker Creator formatting
run: yarn prettier:check
- name: Check Sticker Creator linting
run: yarn lint
- name: Run tests
run: yarn test --run
mock-tests:
needs: lint
runs-on: ubuntu-latest-8-cores

View file

@ -2,3 +2,4 @@ dist/
public/*
src/assets/*
src/util/protos.*
stats.html

View file

@ -16,7 +16,7 @@
"lint": "run-p eslint prettier:format",
"eslint": "eslint --cache .",
"prettier:format": "prettier --list-different --cache --write .",
"prettier:check": "prettier --list-different --cache --check .",
"prettier:check": "prettier --cache --check .",
"build:emoji": "cwebp -progress -mt -preset icon -alpha_filter best -alpha_q 20 -pass 10 -q 50 ./node_modules/emoji-datasource-apple/img/apple/sheets-clean/64.png -o ./src/assets/emoji.webp",
"build:protos": "pbjs --target static-module --force-number --no-typeurl --no-delimited --no-verify --no-create --no-convert --wrap es6 --out src/util/protos.js ./protos/*.proto && pbts --out src/util/protos.d.ts src/util/protos.js",
"test": "vitest"

View file

@ -1,7 +1,7 @@
// Copyright 2022 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
$inter: Inter, 'Source Sans Pro', 'Source Han Sans', -apple-system, system-ui,
$inter: Inter, 'Source Sans Pro', 'Source Han Sans', -apple-system, system-ui,
'Segoe UI', 'Noto Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
@mixin font-family {