Add a lint workflow to fail on eslint warnings #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: lint | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
eslint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install modules | |
run: npm --prefix ./browser i | |
- name: Install dependencies (cpp) | |
run: | | |
sudo sh -c "echo deb-src http://archive.ubuntu.com/ubuntu/ focal main restricted >> /etc/apt/sources.list" | |
sudo sh -c "echo deb-src http://archive.ubuntu.com/ubuntu/ focal-updates main restricted >> /etc/apt/sources.list" | |
sudo sh -c "echo deb-src http://security.ubuntu.com/ubuntu/ focal-security main restricted >> /etc/apt/sources.list" | |
sudo sh -c "echo deb-src http://security.ubuntu.com/ubuntu/ focal-security universe >> /etc/apt/sources.list" | |
sudo sh -c "echo deb-src http://security.ubuntu.com/ubuntu/ focal-security multiverse >> /etc/apt/sources.list" | |
sudo apt-get update | |
sudo apt install -y libunwind-dev | |
sudo apt-get install -y build-essential git libpoco-dev libcap-dev python3-polib npm libpng-dev python3-lxml libpam-dev libzstd-dev | |
sudo apt-get build-dep -y libreoffice | |
- name: Install dependencies (py) | |
run: | | |
pip install lxml | |
pip install polib | |
- name: Configure | |
run: | | |
cd .. && wget https://github.com/CollaboraOnline/online/releases/download/for-code-assets/core-co-23.05-assets.tar.gz | |
tar xvf core-co-23.05-assets.tar.gz && rm core-co-23.05-assets.tar.gz && export LOCOREPATH=$(pwd) | |
cd - && ./autogen.sh | |
./configure --enable-silent-rules --with-lokit-path=${LOCOREPATH}/include --with-lo-path=${LOCOREPATH}/instdir --enable-debug --disable-setcap | |
- name: Run ESLint | |
run: | | |
make eslint |