From 96951d1280b1e81f07241bf5ee940d4926bebded Mon Sep 17 00:00:00 2001 From: stsdc <6031763+stsdc@users.noreply.github.com> Date: Mon, 10 Jan 2022 21:57:28 +0100 Subject: [PATCH] move lint to separate workflow --- .github/workflows/lint.yml | 17 +++++++++++++++++ .github/workflows/main.yml | 14 ++------------ 2 files changed, 19 insertions(+), 12 deletions(-) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 00000000..f784c9c9 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,17 @@ +name: Lint + +on: [push, pull_request] + +jobs: + + lint: + runs-on: ubuntu-latest + container: + image: valalang/lint + + steps: + - uses: actions/checkout@v1 + with: + submodules: false + - name: Lint + run: io.elementary.vala-lint -d . diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 68063e20..7245439f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,8 +1,9 @@ -name: CI +name: Build on: [push, pull_request] jobs: + build: runs-on: ubuntu-latest @@ -30,14 +31,3 @@ jobs: cd build ninja - lint: - - runs-on: ubuntu-latest - - container: - image: valalang/lint - - steps: - - uses: actions/checkout@v1 - - name: Lint - run: io.elementary.vala-lint -d .