2019-09-26 16:25:26 +03:00
|
|
|
name: CSS
|
2020-10-29 19:26:15 +02:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2023-03-22 09:03:51 +02:00
|
|
|
branches:
|
|
|
|
- main
|
2020-10-29 19:26:15 +02:00
|
|
|
pull_request:
|
2021-12-02 23:02:11 +02:00
|
|
|
workflow_dispatch:
|
2020-10-29 19:26:15 +02:00
|
|
|
|
2019-09-26 16:25:26 +03:00
|
|
|
env:
|
2020-11-23 21:32:25 +02:00
|
|
|
FORCE_COLOR: 2
|
2023-12-17 10:14:49 +02:00
|
|
|
NODE: 20
|
2019-09-26 16:25:26 +03:00
|
|
|
|
2022-12-16 12:50:12 +05:30
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2019-09-26 16:25:26 +03:00
|
|
|
jobs:
|
|
|
|
css:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Clone repository
|
2023-09-13 12:47:26 +03:00
|
|
|
uses: actions/checkout@v4
|
2022-11-09 09:21:55 +02:00
|
|
|
with:
|
|
|
|
persist-credentials: false
|
2019-09-26 16:25:26 +03:00
|
|
|
|
2020-10-29 19:26:15 +02:00
|
|
|
- name: Set up Node.js
|
2023-11-02 07:48:47 +02:00
|
|
|
uses: actions/setup-node@v4
|
2019-09-26 16:25:26 +03:00
|
|
|
with:
|
|
|
|
node-version: "${{ env.NODE }}"
|
2021-07-19 18:38:49 +03:00
|
|
|
cache: npm
|
2019-09-26 16:25:26 +03:00
|
|
|
|
|
|
|
- name: Install npm dependencies
|
|
|
|
run: npm ci
|
|
|
|
|
|
|
|
- name: Build CSS
|
|
|
|
run: npm run css
|
2022-12-25 12:41:54 +02:00
|
|
|
|
|
|
|
- name: Run CSS tests
|
|
|
|
run: npm run css-test
|