Code Style: Initialize Objects with Properties #145
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: CI | |
on: [pull_request, push] | |
jobs: | |
Build: | |
name: Build | |
runs-on: ubuntu-latest | |
container: | |
image: elementary/docker:unstable | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v1 | |
- name: Install Depedencies | |
env: | |
dependency_packages: libvala-dev valac meson | |
run: apt-get update && apt-get -y install ${dependency_packages} | |
- name: Build | |
run: meson build && ninja -C build | |
- name: Upload | |
uses: actions/upload-artifact@v1 | |
with: | |
name: vala-lint | |
path: ./ | |
Test: | |
name: Test Build | |
runs-on: ubuntu-latest | |
needs: Build | |
container: | |
image: elementary/docker:unstable | |
steps: | |
- name: Install Depedencies | |
env: | |
dependency_packages: libvala-dev valac meson | |
run: apt-get update && apt-get -y install ${dependency_packages} | |
- name: Download | |
uses: actions/download-artifact@v1 | |
with: | |
name: vala-lint | |
path: ./ | |
- name: Set Permissions | |
run: chmod +x ./build/src/io.elementary.vala-lint | |
- name: Test | |
run: ninja test -C build | |
Test_Config: | |
name: Test Configuration | |
runs-on: ubuntu-latest | |
needs: Build | |
container: | |
image: elementary/docker:unstable | |
steps: | |
- name: Install Depedencies | |
env: | |
dependency_packages: libvala-dev valac meson | |
run: apt-get update && apt-get -y install ${dependency_packages} | |
- name: Download | |
uses: actions/download-artifact@v1 | |
with: | |
name: vala-lint | |
path: ./ | |
- name: Set Permissions | |
run: chmod +x ./build/src/io.elementary.vala-lint | |
- name: Check Config File | |
run: bash -c 'diff <(./build/src/io.elementary.vala-lint -g) <(cat vala-lint.conf)' | |
Lint: | |
name: Lint Self | |
runs-on: ubuntu-latest | |
needs: Build | |
container: | |
image: elementary/docker:unstable | |
steps: | |
- name: Install Depedencies | |
env: | |
dependency_packages: libvala-dev valac meson | |
run: apt-get update && apt-get -y install ${dependency_packages} | |
- name: Download | |
uses: actions/download-artifact@v1 | |
with: | |
name: vala-lint | |
path: ./ | |
- name: Set Permissions | |
run: chmod +x ./build/src/io.elementary.vala-lint | |
- name: Lint | |
run: ./build/src/io.elementary.vala-lint | |
Lint_Projects: | |
name: Lint "${{ matrix.project }}" | |
runs-on: ubuntu-latest | |
needs: Build | |
strategy: | |
matrix: | |
project: | |
- appcenter | |
- calendar | |
- greeter | |
- music | |
- screenshot | |
- switchboard-plug-onlineaccounts | |
container: | |
image: elementary/docker:unstable | |
steps: | |
- name: Install Depedencies | |
env: | |
dependency_packages: libvala-dev valac git | |
run: apt-get update && apt-get -y install ${dependency_packages} | |
- name: Download | |
uses: actions/download-artifact@v1 | |
with: | |
name: vala-lint | |
path: ./ | |
- name: Set Permissions | |
run: chmod +x ./build/src/io.elementary.vala-lint | |
- name: Clone | |
run: git clone https://github.com/elementary/${{ matrix.project }}.git | |
- name: Lint | |
run: ./build/src/io.elementary.vala-lint --exit-zero ${{ matrix.project }}/ |