From 7164f5ebd28e4077c54f03ea8e2f3883ba30f25b Mon Sep 17 00:00:00 2001 From: flakey5 <73616808+flakey5@users.noreply.github.com> Date: Sun, 29 Oct 2023 15:38:24 -0700 Subject: [PATCH] fix: run tests and formatting jobs when pr is opened --- .github/workflows/format.yml | 3 ++- .github/workflows/test.yml | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 52e51c8..b9ca69e 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -3,6 +3,7 @@ name: Lint Checks (ESLint / Prettier) on: pull_request: types: + - opened - ready_for_review - synchronize - labeled @@ -13,7 +14,7 @@ jobs: lint: name: Check Linting and Formatting runs-on: ubuntu-latest - if: ${{ github.event.action == 'ready_for_review' || github.event.action == 'synchronize' || (github.event.action == 'labeled' && github.event.label.name == 'force ci') }} + if: ${{ github.event.action == 'opened' || github.event.action == 'ready_for_review' || github.event.action == 'synchronize' || (github.event.action == 'labeled' && github.event.label.name == 'force ci') }} steps: - name: Git Checkout diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 33a15ff..196b134 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -3,6 +3,7 @@ name: Tests on: pull_request: types: + - opened - ready_for_review - synchronize - labeled @@ -13,7 +14,7 @@ jobs: unit-tests: name: Unit Tests runs-on: ubuntu-latest - if: ${{ github.event.action == 'ready_for_review' || github.event.action == 'synchronize' || (github.event.action == 'labeled' && github.event.label.name == 'force ci') }} + if: ${{ github.event.action == 'opened' || github.event.action == 'ready_for_review' || github.event.action == 'synchronize' || (github.event.action == 'labeled' && github.event.label.name == 'force ci') }} steps: - name: Git Checkout @@ -36,7 +37,7 @@ jobs: e2e-test: name: E2E Tests runs-on: ubuntu-latest - if: ${{ github.event.action == 'ready_for_review' || github.event.action == 'synchronize' || (github.event.action == 'labeled' && github.event.label.name == 'force ci') }} + if: ${{ github.event.action == 'opened' || github.event.action == 'ready_for_review' || github.event.action == 'synchronize' || (github.event.action == 'labeled' && github.event.label.name == 'force ci') }} steps: - name: Git Checkout