Browse Source

Merge pull request #15321 from Chocobo1/ci

Clean up workflow files coding style
adaptive-webui-19844
Chocobo1 3 years ago committed by GitHub
parent
commit
521ef8e28f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 429
      .github/workflows/ci.yaml
  2. 121
      .github/workflows/coverity-scan.yml
  3. 24
      .github/workflows/file_health.yaml
  4. 32
      .github/workflows/webui_ci.yaml

429
.github/workflows/ci.yaml

@ -1,4 +1,4 @@
name: GitHub Actions CI name: CI - Main
# Cache is used for all Windows and macOS dependencies (size approx. 1230 * 2 + 1850 = 4310 MiB) # Cache is used for all Windows and macOS dependencies (size approx. 1230 * 2 + 1850 = 4310 MiB)
# Cache is not used for Ubuntu builds, because it already has all dependencies except # Cache is not used for Ubuntu builds, because it already has all dependencies except
@ -13,8 +13,7 @@ env:
LIBTORRENT_VERSION_TAG: v1.2.14 LIBTORRENT_VERSION_TAG: v1.2.14
jobs: jobs:
ubuntu:
ci_ubuntu:
name: Ubuntu name: Ubuntu
strategy: strategy:
@ -30,64 +29,71 @@ jobs:
shell: bash shell: bash
steps: steps:
- name: checkout repository - name: Checkout repository
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: install all build dependencies except libtorrent from Ubuntu repos - name: Install dependencies
run: | run: |
sudo apt update sudo apt update
sudo apt install \ sudo apt install \
build-essential cmake git ninja-build pkg-config \ build-essential cmake git ninja-build pkg-config \
libssl-dev libgeoip-dev zlib1g-dev \ libssl-dev libgeoip-dev zlib1g-dev \
libboost-dev libboost-chrono-dev libboost-random-dev libboost-system-dev libboost-dev libboost-chrono-dev libboost-random-dev libboost-system-dev
# sudo apt install libqt5svg5-dev qtbase5-dev qttools5-dev # the Qt version in the standard repositories is too old... # sudo apt install libqt5svg5-dev qtbase5-dev qttools5-dev # the Qt version in the standard repositories is too old...
# this will be installed under /opt/qt515. CMake will still find it automatically without additional hints # this will be installed under /opt/qt515. CMake will still find it automatically without additional hints
# to speed up the process, only the required components are installed rather than the full qt515-meta-full metapackage # to speed up the process, only the required components are installed rather than the full qt515-meta-full metapackage
- name: install Qt 5.15.2 from an external PPA - name: Install Qt
run: | run: |
sudo add-apt-repository ppa:beineri/opt-qt-5.15.2-focal sudo add-apt-repository ppa:beineri/opt-qt-5.15.2-focal
sudo apt install qt515base qt515svg qt515tools sudo apt install \
qt515base qt515svg qt515tools
- name: install libtorrent from source
run: | - name: Install libtorrent
git clone https://github.com/arvidn/libtorrent && cd libtorrent run: |
git checkout ${{ env.LIBTORRENT_VERSION_TAG }} git clone https://github.com/arvidn/libtorrent
cmake -B cmake-build-dir -G "Ninja" \ cd libtorrent
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo \ git checkout ${{ env.LIBTORRENT_VERSION_TAG }}
-Ddeprecated-functions=OFF \ cmake \
--graphviz=cmake-build-dir/target_graph.dot -B build \
cmake --build cmake-build-dir -G "Ninja" \
sudo cmake --install cmake-build-dir --prefix /usr/local -DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
- name: build qBittorrent -Ddeprecated-functions=OFF \
run: | --graphviz=cmake-build-dir/target_graph.dot
cmake -B build -G "Ninja" \ cmake --build build
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo \ sudo cmake --install build --prefix /usr/local
-D${{ matrix.qbt_gui }} \
-DVERBOSE_CONFIGURE=ON \ - name: Build qBittorrent
--graphviz=build/target_graph.dot run: |
cmake --build build cmake \
-B build \
- name: install qBittorrent -G "Ninja" \
run: sudo cmake --install build --prefix /usr/local -DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
- name: upload artifact as zip -D${{ matrix.qbt_gui }} \
uses: actions/upload-artifact@v2 -DVERBOSE_CONFIGURE=ON \
with: --graphviz=build/target_graph.dot
name: qBittorrent-CI_${{ matrix.os }}-x64_${{ matrix.qbt_gui }} cmake --build build
path: |
build/compile_commands.json - name: Install qBittorrent
build/install_manifest.txt run: sudo cmake --install build --prefix /usr/local
build/target_graph.dot
build/qbittorrent - name: Upload build artifacts
build/qbittorrent-nox uses: actions/upload-artifact@v2
libtorrent/cmake-build-dir/compile_commands.json with:
libtorrent/cmake-build-dir/target_graph.dot name: qBittorrent-CI_${{ matrix.os }}-x64_${{ matrix.qbt_gui }}
path: |
ci_windows: build/compile_commands.json
name: Windows + vcpkg build/install_manifest.txt
build/target_graph.dot
build/qbittorrent
build/qbittorrent-nox
libtorrent/cmake-build-dir/compile_commands.json
libtorrent/cmake-build-dir/target_graph.dot
windows:
name: Windows
runs-on: windows-2019 runs-on: windows-2019
defaults: defaults:
@ -95,160 +101,177 @@ jobs:
shell: pwsh shell: pwsh
steps: steps:
- name: checkout repository - name: Checkout repository
uses: actions/checkout@v2 uses: actions/checkout@v2
# - ninja is needed for building qBittorrent (because it's preferable, not a hard requirement) # - ninja is needed for building qBittorrent (because it's preferable, not a hard requirement)
- name: install additional required packages with chocolatey - name: Install build tools
run: | run: |
choco install ninja choco install ninja
- name: setup vcpkg (cached, if possible) - name: Setup vcpkg
uses: lukka/run-vcpkg@v7 uses: lukka/run-vcpkg@v7
with: with:
vcpkgDirectory: ${{ env.VCPKG_DEST_WIN }} vcpkgDirectory: ${{ env.VCPKG_DEST_WIN }}
vcpkgGitCommitId: ${{ env.VCPKG_COMMIT }} vcpkgGitCommitId: ${{ env.VCPKG_COMMIT }}
setupOnly: true setupOnly: true
# Tell vcpkg to only build Release variants of the dependencies # Tell vcpkg to only build Release variants of the dependencies
- name: configure vcpkg triplet overlay for release builds only - name: Configure vcpkg triplet overlay
run: | run: |
New-Item -Path ${{ github.workspace }} -Name "triplets_overlay" -ItemType Directory New-Item `
Copy-Item ${{ env.RUNVCPKG_VCPKG_ROOT }}/triplets/x64-windows-static.cmake ` -Path ${{ github.workspace }} `
${{ github.workspace }}/triplets_overlay/x64-windows-static-release.cmake -Name "triplets_overlay" `
Add-Content ${{ github.workspace }}/triplets_overlay/x64-windows-static-release.cmake ` -ItemType Directory
-Value "set(VCPKG_BUILD_TYPE release)" Copy-Item `
${{ env.RUNVCPKG_VCPKG_ROOT }}/triplets/x64-windows-static.cmake `
# clear buildtrees after each package installation to reduce disk space requirements ${{ github.workspace }}/triplets_overlay/x64-windows-static-release.cmake
- name: install dependencies via vcpkg Add-Content `
run: | ${{ github.workspace }}/triplets_overlay/x64-windows-static-release.cmake `
$packages = ` -Value "set(VCPKG_BUILD_TYPE release)"
"boost-circular-buffer:x64-windows-static-release",
"libtorrent:x64-windows-static-release", # clear buildtrees after each package installation to reduce disk space requirements
"qt5-base:x64-windows-static-release", - name: Install dependencies
"qt5-svg:x64-windows-static-release", run: |
"qt5-tools:x64-windows-static-release", $packages = `
"qt5-winextras:x64-windows-static-release" "boost-circular-buffer:x64-windows-static-release",
${{ env.RUNVCPKG_VCPKG_ROOT }}/vcpkg.exe upgrade ` "libtorrent:x64-windows-static-release",
"qt5-base:x64-windows-static-release",
"qt5-svg:x64-windows-static-release",
"qt5-tools:x64-windows-static-release",
"qt5-winextras:x64-windows-static-release"
${{ env.RUNVCPKG_VCPKG_ROOT }}/vcpkg.exe upgrade `
--overlay-triplets=${{ github.workspace }}/triplets_overlay ` --overlay-triplets=${{ github.workspace }}/triplets_overlay `
--no-dry-run --no-dry-run
foreach($package in $packages) foreach($package in $packages)
{ {
${{ env.RUNVCPKG_VCPKG_ROOT }}/vcpkg.exe install $package ` ${{ env.RUNVCPKG_VCPKG_ROOT }}/vcpkg.exe install $package `
--overlay-triplets=${{ github.workspace }}/triplets_overlay ` --overlay-triplets=${{ github.workspace }}/triplets_overlay `
--clean-after-build --clean-after-build
} }
# NOTE: this is necessary to correctly find and use cl.exe with the Ninja generator for now # NOTE: this is necessary to correctly find and use cl.exe with the Ninja generator for now
- name: setup devcmd - name: Setup devcmd
uses: ilammy/msvc-dev-cmd@v1 uses: ilammy/msvc-dev-cmd@v1
- name: build qBittorrent - name: Build qBittorrent
shell: cmd shell: cmd
run: | run: |
cmake -B build -G "Ninja" ^ cmake ^
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo ^ -B build ^
-DCMAKE_TOOLCHAIN_FILE=${{ env.VCPKG_DEST_WIN }}\scripts\buildsystems\vcpkg.cmake ^ -G "Ninja" ^
-DVCPKG_TARGET_TRIPLET=x64-windows-static-release ^ -DCMAKE_BUILD_TYPE=RelWithDebInfo ^
-DVERBOSE_CONFIGURE=ON ^ -DCMAKE_EXPORT_COMPILE_COMMANDS=ON ^
-DMSVC_RUNTIME_DYNAMIC=OFF ^ -DCMAKE_TOOLCHAIN_FILE=${{ env.VCPKG_DEST_WIN }}\scripts\buildsystems\vcpkg.cmake ^
--graphviz=build\target_graph.dot -DVCPKG_TARGET_TRIPLET=x64-windows-static-release ^
cmake --build build -DVERBOSE_CONFIGURE=ON ^
-DMSVC_RUNTIME_DYNAMIC=OFF ^
- name: upload artifact as zip --graphviz=build\target_graph.dot
uses: actions/upload-artifact@v2 cmake --build build
with:
name: qBittorrent-CI_Windows-x64 - name: Upload build artifacts
path: | uses: actions/upload-artifact@v2
build/compile_commands.json with:
build/target_graph.dot name: qBittorrent-CI_Windows-x64
build/qbittorrent.exe path: |
build/qbittorrent.pdb build/compile_commands.json
dist/windows/qt.conf build/target_graph.dot
build/qbittorrent.exe
ci_macos: build/qbittorrent.pdb
name: macOS + vcpkg dist/windows/qt.conf
macos:
name: macOS
runs-on: macos-10.15
strategy: strategy:
matrix: matrix:
qbt_gui: ["GUI=ON", "GUI=OFF"] qbt_gui: ["GUI=ON", "GUI=OFF"]
fail-fast: false fail-fast: false
runs-on: macos-10.15
defaults: defaults:
run: run:
shell: pwsh shell: pwsh
steps: steps:
- name: checkout repository - name: Checkout repository
uses: actions/checkout@v2 uses: actions/checkout@v2
# - ninja is needed for building qBittorrent (because it's preferable, not a hard requirement) # - ninja is needed for building qBittorrent (because it's preferable, not a hard requirement)
# - automake is needed for the installation the vcpkg installation of fontconfig, a dependency of qt5-base # - automake is needed for the installation the vcpkg installation of fontconfig, a dependency of qt5-base
- name: install additional required packages with homebrew - name: Install build tools
shell: bash shell: bash
run: | run: |
brew install automake ninja brew install automake ninja
- name: setup vcpkg (cached, if possible) - name: Setup vcpkg
uses: lukka/run-vcpkg@v7 uses: lukka/run-vcpkg@v7
with: with:
vcpkgDirectory: ${{ env.VCPKG_DEST_MACOS }} vcpkgDirectory: ${{ env.VCPKG_DEST_MACOS }}
vcpkgGitCommitId: ${{ env.VCPKG_COMMIT }} vcpkgGitCommitId: ${{ env.VCPKG_COMMIT }}
setupOnly: true setupOnly: true
- name: configure vcpkg triplet overlay for release builds only - name: Configure vcpkg triplet overlay
run: | run: |
New-Item -Path ${{ github.workspace }} -Name "triplets_overlay" -ItemType Directory New-Item `
Copy-Item ${{ env.RUNVCPKG_VCPKG_ROOT }}/triplets/x64-osx.cmake ` -Path ${{ github.workspace }} `
${{ github.workspace }}/triplets_overlay/x64-osx-release.cmake -Name "triplets_overlay" `
Add-Content ${{ github.workspace }}/triplets_overlay/x64-osx-release.cmake ` -ItemType Directory
-Value "set(VCPKG_BUILD_TYPE release)","set(VCPKG_OSX_DEPLOYMENT_TARGET 10.15)" Copy-Item `
${{ env.RUNVCPKG_VCPKG_ROOT }}/triplets/x64-osx.cmake `
# NOTE: Avoids a libtorrent ABI issue. See https://github.com/arvidn/libtorrent/issues/4965 ${{ github.workspace }}/triplets_overlay/x64-osx-release.cmake
- name: force AppleClang to compile libtorrent with the same C++ standard as qBittorrent Add-Content `
run: | ${{ github.workspace }}/triplets_overlay/x64-osx-release.cmake `
(Get-Content -path ${{ env.RUNVCPKG_VCPKG_ROOT }}/ports/libtorrent/portfile.cmake).Replace( ` -Value "set(VCPKG_BUILD_TYPE release)","set(VCPKG_OSX_DEPLOYMENT_TARGET 10.15)"
'${FEATURE_OPTIONS}', '${FEATURE_OPTIONS} -DCMAKE_CXX_STANDARD=17') `
| Set-Content -Path ${{ env.RUNVCPKG_VCPKG_ROOT }}/ports/libtorrent/portfile.cmake # NOTE: Avoids a libtorrent ABI issue. See https://github.com/arvidn/libtorrent/issues/4965
- name: Adjust "C++ standard" cmake flag
- name: install dependencies via vcpkg run: |
run: | (Get-Content `
$packages = ` -path ${{ env.RUNVCPKG_VCPKG_ROOT }}/ports/libtorrent/portfile.cmake).Replace( `
"boost-circular-buffer:x64-osx-release", '${FEATURE_OPTIONS}', '${FEATURE_OPTIONS} -DCMAKE_CXX_STANDARD=17') `
"libtorrent:x64-osx-release", | Set-Content -Path ${{ env.RUNVCPKG_VCPKG_ROOT }}/ports/libtorrent/portfile.cmake
"qt5-base:x64-osx-release",
"qt5-svg:x64-osx-release", - name: Install dependencies
"qt5-tools:x64-osx-release", run: |
"qt5-macextras:x64-osx-release" $packages = `
${{ env.RUNVCPKG_VCPKG_ROOT }}/vcpkg upgrade ` "boost-circular-buffer:x64-osx-release",
"libtorrent:x64-osx-release",
"qt5-base:x64-osx-release",
"qt5-svg:x64-osx-release",
"qt5-tools:x64-osx-release",
"qt5-macextras:x64-osx-release"
${{ env.RUNVCPKG_VCPKG_ROOT }}/vcpkg upgrade `
--overlay-triplets=${{ github.workspace }}/triplets_overlay ` --overlay-triplets=${{ github.workspace }}/triplets_overlay `
--no-dry-run --no-dry-run
foreach($package in $packages) foreach($package in $packages)
{ {
${{ env.RUNVCPKG_VCPKG_ROOT }}/vcpkg install $package ` ${{ env.RUNVCPKG_VCPKG_ROOT }}/vcpkg install $package `
--overlay-triplets=${{ github.workspace }}/triplets_overlay ` --overlay-triplets=${{ github.workspace }}/triplets_overlay `
--clean-after-build --clean-after-build
} }
- name: build qBittorrent - name: Build qBittorrent
shell: bash shell: bash
run: | run: |
cmake -B build -G "Ninja" -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo \ cmake \
-DCMAKE_TOOLCHAIN_FILE=${{ env.VCPKG_DEST_MACOS }}/scripts/buildsystems/vcpkg.cmake \ -B build \
-DVCPKG_TARGET_TRIPLET=x64-osx-release \ -G "Ninja" \
-D${{ matrix.qbt_gui }} \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DVERBOSE_CONFIGURE=ON \ -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
--graphviz=build/target_graph.dot -DCMAKE_TOOLCHAIN_FILE=${{ env.VCPKG_DEST_MACOS }}/scripts/buildsystems/vcpkg.cmake \
cmake --build build -DVCPKG_TARGET_TRIPLET=x64-osx-release \
-D${{ matrix.qbt_gui }} \
- name: upload artifact as zip -DVERBOSE_CONFIGURE=ON \
uses: actions/upload-artifact@v2 --graphviz=build/target_graph.dot
with: cmake --build build
name: qBittorrent-CI_macOS_${{ matrix.qbt_gui }}
path: | - name: Upload build artifacts
build/compile_commands.json uses: actions/upload-artifact@v2
build/target_graph.dot with:
build/qbittorrent.app name: qBittorrent-CI_macOS_${{ matrix.qbt_gui }}
build/qbittorrent-nox.app path: |
build/compile_commands.json
build/target_graph.dot
build/qbittorrent.app
build/qbittorrent-nox.app

121
.github/workflows/coverity-scan.yml

@ -1,78 +1,85 @@
name: Coverity Scan name: Coverity Scan
on: on:
schedule: schedule:
- cron: '0 0 1 * *' # Monthly (1st day of month at midnight) - cron: '0 0 1 * *' # Monthly (1st day of month at midnight)
workflow_dispatch: # Mainly for testing. Don't forget the Coverity usage limits. workflow_dispatch: # Mainly for testing. Don't forget the Coverity usage limits.
env: env:
LIBTORRENT_VERSION_TAG: v1.2.14 LIBTORRENT_VERSION_TAG: v1.2.14
jobs: jobs:
coverity_scan: coverity_scan:
name: Scan name: Scan
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- name: checkout repository - name: Checkout repository
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: install all build dependencies except libtorrent from Ubuntu repos - name: Install dependencies
run: | run: |
sudo apt update sudo apt update
sudo apt install \ sudo apt install \
build-essential cmake git ninja-build pkg-config \ build-essential cmake git ninja-build pkg-config \
libssl-dev zlib1g-dev libboost-dev libboost-system-dev libssl-dev zlib1g-dev libboost-dev libboost-system-dev
# sudo apt install libqt5svg5-dev qtbase5-dev qttools5-dev # the Qt version in the standard repositories is too old... # sudo apt install libqt5svg5-dev qtbase5-dev qttools5-dev # the Qt version in the standard repositories is too old...
# this will be installed under /opt/qt515. CMake will still find it automatically without additional hints # this will be installed under /opt/qt515. CMake will still find it automatically without additional hints
# to speed up the process, only the required components are installed rather than the full qt515-meta-full metapackage # to speed up the process, only the required components are installed rather than the full qt515-meta-full metapackage
- name: install Qt 5.15.2 from an external PPA - name: Install Qt
run: | run: |
sudo add-apt-repository ppa:beineri/opt-qt-5.15.2-focal sudo add-apt-repository ppa:beineri/opt-qt-5.15.2-focal
sudo apt install qt515base qt515svg qt515tools sudo apt install \
qt515base qt515svg qt515tools
- name: install libtorrent from source - name: Install libtorrent
run: | run: |
git clone https://github.com/arvidn/libtorrent && cd libtorrent git clone https://github.com/arvidn/libtorrent
git checkout ${{ env.LIBTORRENT_VERSION_TAG }} cd libtorrent
cmake -B cmake-build-dir -G "Ninja" \ git checkout ${{ env.LIBTORRENT_VERSION_TAG }}
-DCMAKE_BUILD_TYPE=Release \ cmake \
-Ddeprecated-functions=OFF -B build \
cmake --build cmake-build-dir -G "Ninja" \
sudo cmake --install cmake-build-dir --prefix /usr/local -DCMAKE_BUILD_TYPE=Release \
-Ddeprecated-functions=OFF
cmake --build build
sudo cmake --install build --prefix /usr/local
- name: Download Coverity Build Tool - name: Download Coverity Build Tool
run: | run: |
wget -q https://scan.coverity.com/download/linux64 --post-data "token=$TOKEN&project=qbittorrent%2FqBittorrent" -O coverity_tool.tgz wget \
mkdir coverity_tool -q \
tar xzf coverity_tool.tgz --strip 1 -C coverity_tool https://scan.coverity.com/download/linux64 \
env: --post-data "token=$TOKEN&project=qbittorrent%2FqBittorrent" \
TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }} -O coverity_tool.tgz
mkdir coverity_tool
tar xzf coverity_tool.tgz --strip 1 -C coverity_tool
env:
TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}
- name: Configure qBittorrent - name: Configure qBittorrent
run: | run: |
cmake -B build -G "Ninja" \ cmake \
-DCMAKE_BUILD_TYPE=Release \ -B build \
-DGUI=ON \ -G "Ninja" \
-DVERBOSE_CONFIGURE=ON -DCMAKE_BUILD_TYPE=Release \
-DGUI=ON \
-DVERBOSE_CONFIGURE=ON
- name: Build with cov-build - name: Build qBittorrent
run: | run: |
export PATH=`pwd`/coverity_tool/bin:$PATH export PATH="$(pwd)/coverity_tool/bin:$PATH"
cov-build --dir cov-int cmake --build build cov-build --dir cov-int cmake --build build
- name: Submit the result to Coverity Scan - name: Submit the result to Coverity Scan
run: | run: |
tar caf qbittorrent.xz cov-int tar caf qbittorrent.xz cov-int
curl \ curl \
--form token=$TOKEN \ --form token=$TOKEN \
--form email=sledgehammer999@qbittorrent.org \ --form email=sledgehammer999@qbittorrent.org \
--form file=@qbittorrent.tgz \ --form file=@qbittorrent.tgz \
--form version="`git rev-parse --short HEAD`" \ --form version="$(git rev-parse --short HEAD)" \
--form description="master" \ --form description="master" \
https://scan.coverity.com/builds?project=qbittorrent%2FqBittorrent https://scan.coverity.com/builds?project=qbittorrent%2FqBittorrent
env: env:
TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }} TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}

24
.github/workflows/file_health.yaml

@ -1,22 +1,20 @@
name: GitHub Actions file health check name: CI - File health
on: [pull_request, push] on: [pull_request, push]
jobs: jobs:
check_file_health: check_file_health:
name: Check file health name: Check file health
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps: steps:
- name: checkout repository - name: Checkout repository
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: install zsh - name: Install tools
run: | run: |
sudo apt update sudo apt update
sudo apt install zsh sudo apt install zsh
- name: run check file health script - name: Run script
run: | run: |
./.github/workflows/file_health.sh ./.github/workflows/file_health.sh

32
.github/workflows/webui_ci.yaml

@ -1,31 +1,31 @@
name: WebUI CI name: CI - WebUI
on: [pull_request, push] on: [pull_request, push]
jobs: jobs:
check_webui: check_webui:
name: Check WebUI name: Check WebUI
runs-on: ubuntu-20.04 runs-on: ubuntu-latest
defaults: defaults:
run: run:
working-directory: src/webui/www working-directory: src/webui/www
steps: steps:
- name: checkout repository - name: Checkout repository
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: setup nodejs - name: Setup nodejs
uses: actions/setup-node@v2 uses: actions/setup-node@v2
with: with:
node-version: '14' node-version: 'lts/*'
- name: install tools - name: Install tools
run: npm install run: npm install
- name: lint code - name: Lint code
run: npm run lint run: npm run lint
- name: format code - name: Format code
run: | run: |
npm run format npm run format
git diff --exit-code git diff --exit-code

Loading…
Cancel
Save