From 6f4b09069f8763196986ffdd0a08c41cc30a29d0 Mon Sep 17 00:00:00 2001 From: Walnuts Date: Mon, 6 Nov 2023 17:36:14 +0900 Subject: [PATCH] Update GitHub workflows for push events --- .github/workflows/back-test.yaml | 3 ++- .github/workflows/front-test.yaml | 2 +- .github/workflows/lint.yaml | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/back-test.yaml b/.github/workflows/back-test.yaml index 19fc6d6..cd9b3d0 100644 --- a/.github/workflows/back-test.yaml +++ b/.github/workflows/back-test.yaml @@ -1,6 +1,6 @@ name: Backend Tests on: - pull_request: + push: workflow_dispatch: permissions: contents: read @@ -31,6 +31,7 @@ jobs: - name: Upload coverage to Codecov uses: codecov/codecov-action@v3 + if: github.ref == 'refs/heads/main' with: token: ${{ secrets.CODECOV_TOKEN }} files: cover.out diff --git a/.github/workflows/front-test.yaml b/.github/workflows/front-test.yaml index 02310cb..a9fd6b9 100644 --- a/.github/workflows/front-test.yaml +++ b/.github/workflows/front-test.yaml @@ -1,7 +1,7 @@ name: Frontend Tests on: - pull_request: workflow_dispatch: + push: jobs: frontend-buildtests: runs-on: ubuntu-latest diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 9946773..9644037 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -1,7 +1,7 @@ name: Lint on: - pull_request: workflow_dispatch: + push: jobs: frontend-lint: runs-on: ubuntu-latest