From 880d6924a813efb5c2973098f72e4432acb3a134 Mon Sep 17 00:00:00 2001 From: Benjamin Dupont <4503241+Benjozork@users.noreply.github.com> Date: Sun, 14 Apr 2024 12:00:56 -0400 Subject: [PATCH] ci: tweak pr workflows --- .github/workflows/pr-title.yml | 2 +- .github/workflows/pr.yaml | 20 +++++++++++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-title.yml b/.github/workflows/pr-title.yml index cb609735..bcc97972 100644 --- a/.github/workflows/pr-title.yml +++ b/.github/workflows/pr-title.yml @@ -1,4 +1,4 @@ -name: PR Title +name: PR Semantics on: pull_request_target: types: diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 66e71501..f5cab03e 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -10,6 +10,25 @@ on: - master jobs: lint: + name: Lint + runs-on: ubuntu-22.04 + if: github.event.pull_request.draft == false + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: '16.9' + - uses: actions/cache@v2 + with: + path: '**/node_modules' + key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }} + - name: install dependencies + run: npm ci + - name: npm run lint + run: | + npm run lint + build: + name: Build and upload Installer runs-on: ubuntu-22.04 if: github.event.pull_request.draft == false steps: @@ -21,7 +40,6 @@ jobs: with: path: '**/node_modules' key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }} - - name: install dependencies run: npm ci - name: Install system requirements