diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bea4bf3f69..97d9ce1070 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/sticker-creator/.prettierignore b/sticker-creator/.prettierignore index 92da45f7ca..c211c43024 100644 --- a/sticker-creator/.prettierignore +++ b/sticker-creator/.prettierignore @@ -2,3 +2,4 @@ dist/ public/* src/assets/* src/util/protos.* +stats.html diff --git a/sticker-creator/package.json b/sticker-creator/package.json index 6d0f0fd3b3..846636c46f 100644 --- a/sticker-creator/package.json +++ b/sticker-creator/package.json @@ -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" diff --git a/sticker-creator/src/fonts.scss b/sticker-creator/src/fonts.scss index 0f73751958..5b558837e3 100644 --- a/sticker-creator/src/fonts.scss +++ b/sticker-creator/src/fonts.scss @@ -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 {