summaryrefslogtreecommitdiff
path: root/.github/workflows/static.yml
blob: 8f5c5a2e25e0b36f48eef6aac25284561573ed97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
name: Validate and process static files

on: [pull_request, push]

jobs:
  static:
    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v3
    - uses: actions/setup-node@v3
      with:
        cache: npm
    - uses: actions/setup-python@v4
      with:
        python-version: '3.11'
        cache: pip

    - run: sudo apt-get update
    - run: sudo apt-get -y install libxml2-utils yajl-tools moreutils zopfli
    - run: npm ci --ignore-scripts
    - run: 'pip install --require-hashes --only-binary :all: -r requirements.txt'

    - name: process static
      run: ./process-static