From dceef40d297e1760d8e23445296d9f9503341af8 Mon Sep 17 00:00:00 2001 From: Jacob Wenger Date: Sat, 2 Nov 2024 22:32:51 -0700 Subject: [PATCH] Ignore packages in dependabot + limit when GH actions run (#117) --- .github/dependabot.yml | 4 ++++ .github/workflows/firebase-hosting-merge.yml | 9 +++++++-- .github/workflows/firebase-hosting-pull-request.yml | 12 +++++++++--- .../{scripts-ci.yml => scripts-ci-push.yml} | 10 +++++++--- .../{frontend-ci.yml => website-ci-push.yml} | 10 +++++++--- 5 files changed, 34 insertions(+), 11 deletions(-) rename .github/workflows/{scripts-ci.yml => scripts-ci-push.yml} (83%) rename .github/workflows/{frontend-ci.yml => website-ci-push.yml} (80%) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 02e358fb..5f70ae07 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -8,3 +8,7 @@ updates: - "/scripts" schedule: interval: "monthly" + ignore: + # Ignore packages which are very outdated and need to be updated manually. + - dependency-name: "puppeteer" + - dependency-name: "rc-slider" diff --git a/.github/workflows/firebase-hosting-merge.yml b/.github/workflows/firebase-hosting-merge.yml index 858f0e94..e8737dce 100644 --- a/.github/workflows/firebase-hosting-merge.yml +++ b/.github/workflows/firebase-hosting-merge.yml @@ -1,10 +1,15 @@ -name: Deploy prod frontend on merge +name: Deploy prod website on merge on: push: branches: - master + paths: + - 'website/**' + - '.firebaserc' + - '.prettierrc' + - 'firebase.json' jobs: - build_and_deploy: + deploy_functions_prod: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/firebase-hosting-pull-request.yml b/.github/workflows/firebase-hosting-pull-request.yml index 9b1bdec4..01ed03c2 100644 --- a/.github/workflows/firebase-hosting-pull-request.yml +++ b/.github/workflows/firebase-hosting-pull-request.yml @@ -1,11 +1,17 @@ -name: Deploy frontend preview on PR -on: pull_request +name: Preview staging website on PR +on: + pull_request: + paths: + - 'website/**' + - '.firebaserc' + - '.prettierrc' + - 'firebase.json' permissions: checks: write contents: read pull-requests: write jobs: - build_and_preview: + deploy_functions_stag: if: ${{ github.event.pull_request.head.repo.full_name == github.repository }} runs-on: ubuntu-latest steps: diff --git a/.github/workflows/scripts-ci.yml b/.github/workflows/scripts-ci-push.yml similarity index 83% rename from .github/workflows/scripts-ci.yml rename to .github/workflows/scripts-ci-push.yml index aa190cd0..5be54f52 100644 --- a/.github/workflows/scripts-ci.yml +++ b/.github/workflows/scripts-ci-push.yml @@ -1,7 +1,11 @@ -name: Run Scripts CI on push -on: [push] +name: Run scripts CI on push +on: + push: + paths: + - 'scripts/**' + - '.prettierrc' jobs: - scripts-ci: + scripts-ci-push: runs-on: ubuntu-latest steps: - name: Checkout code diff --git a/.github/workflows/frontend-ci.yml b/.github/workflows/website-ci-push.yml similarity index 80% rename from .github/workflows/frontend-ci.yml rename to .github/workflows/website-ci-push.yml index 3eece11e..b136d412 100644 --- a/.github/workflows/frontend-ci.yml +++ b/.github/workflows/website-ci-push.yml @@ -1,7 +1,11 @@ -name: Run Frontend CI on push -on: [push] +name: Run website CI on push +on: + push: + paths: + - 'website/**' + - '.prettierrc' jobs: - frontend-ci: + website-ci-push: runs-on: ubuntu-latest steps: - name: Checkout code