From c8d6dc2758ef6369010eb7e23e368d478790aa94 Mon Sep 17 00:00:00 2001 From: Lily Brown Date: Tue, 15 Feb 2022 14:24:51 -0800 Subject: [PATCH] Revise GHA workflows for prototyping (#367) Changed the GHA workflows to: - Not run `build` and `release` workflows for PRs that only affect `prototyping/` - Run `prototyping` workflow when PRs affect `Analysis/**`, `Ast/**`, or the `luau-ast` source files --- .github/workflows/build.yml | 2 ++ .github/workflows/prototyping.yml | 10 ++++++++-- .github/workflows/release.yml | 1 + 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b797e91b..93b92645 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,12 +9,14 @@ on: - 'papers/**' - 'rfcs/**' - '*.md' + - 'prototyping/**' pull_request: paths-ignore: - 'docs/**' - 'papers/**' - 'rfcs/**' - '*.md' + - 'prototyping/**' jobs: unix: diff --git a/.github/workflows/prototyping.yml b/.github/workflows/prototyping.yml index 76c1e3c1..4a1b8e08 100644 --- a/.github/workflows/prototyping.yml +++ b/.github/workflows/prototyping.yml @@ -8,12 +8,18 @@ on: paths: - '.github/workflows/**' - 'prototyping/**' - - 'Analysis/src/JsonEncoder.cpp' + - 'Analysis/**' + - 'Ast/**' + - 'CLI/Ast.cpp' + - 'CLI/FileUtils.*' pull_request: paths: - '.github/workflows/**' - 'prototyping/**' - - 'Analysis/src/JsonEncoder.cpp' + - 'Analysis/**' + - 'Ast/**' + - 'CLI/Ast.cpp' + - 'CLI/FileUtils.*' jobs: linux: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e5cd952b..2bf796a2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,6 +9,7 @@ on: - 'papers/**' - 'rfcs/**' - '*.md' + - 'prototyping/**' jobs: build: