chore: Limit CI runs based on paths

This commit is contained in:
Brenden Matthews 2023-03-04 12:01:39 -05:00
parent d7ca8efbf0
commit a2ac89301c
No known key found for this signature in database
GPG Key ID: B49ABB7270D9D4FD
4 changed files with 25 additions and 7 deletions

View File

@ -3,9 +3,15 @@ on:
push:
branches:
- main
paths-ignore:
- web/**
- doc/**
pull_request:
branches:
- main
paths-ignore:
- web/**
- doc/**
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}

View File

@ -1,13 +1,17 @@
name: "CodeQL"
name: 'CodeQL'
on:
push:
branches: ["main"]
branches: ['main']
paths:
- src/**
pull_request:
# The branches below must be a subset of the branches above
branches: ["main"]
branches: ['main']
paths:
- src/**
schedule:
- cron: "20 2 * * 0"
- cron: '20 2 * * 0'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
@ -25,7 +29,7 @@ jobs:
strategy:
fail-fast: false
matrix:
language: ["cpp", "javascript", "python"]
language: ['cpp', 'javascript', 'python']
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Use only 'java' to analyze code written in Java, Kotlin or both
# Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
@ -94,4 +98,4 @@ jobs:
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"
category: '/language:${{matrix.language}}'

View File

@ -1,12 +1,21 @@
name: Web CI
on:
push:
branches: [main]
paths:
- web/**
- doc/**
pull_request:
branches: [main]
paths:
- web/**
- doc/**
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest

View File

@ -5,7 +5,6 @@ publish = ".next"
# Include the doc dir in the build ignore command
ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF . ../doc/"
[[plugins]]
package = "@netlify/plugin-nextjs"