Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v18 - Configure & Install docs-admin.talawa.io Docusaurus Site #2969

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
ee6b71a
Added docusaurus to eslint ignorePatterns
palisadoes Dec 27, 2024
6d5a55d
Removed blog references
palisadoes Dec 27, 2024
ff6b9ef
Added Docusaurus deployment GitHub Actions
palisadoes Dec 27, 2024
d17066d
Added Docs website installation guide
palisadoes Dec 27, 2024
04d0091
Minor edit to docs/README.md
palisadoes Dec 27, 2024
ba87b96
Updated eslint to ignore docs/ directory
palisadoes Dec 27, 2024
c05fe3f
CodeRabbit suggestions. Removed tsconfig.json file causing errors
palisadoes Dec 27, 2024
49e3ac7
Updated gitignore file
palisadoes Dec 27, 2024
dd9c547
Updated gitignore file
palisadoes Dec 27, 2024
ea1d50c
Removed docs/tsconfig.json causing deployment errors
palisadoes Dec 27, 2024
c08b0e7
Added yarn path to GitHub action
palisadoes Dec 27, 2024
3057345
Added Codecov ignore path
palisadoes Dec 27, 2024
9de4541
Merge branch 'develop-postgres' into docusaurus
palisadoes Dec 27, 2024
da4bb3a
Merge branch 'docusaurus' of github.com:palisadoes/talawa-admin into …
palisadoes Dec 27, 2024
2f2a3df
Added .nojekyll
palisadoes Dec 27, 2024
63bdc47
Created deploy website workflow specific to the develop-postgres branch
palisadoes Dec 27, 2024
7f8efca
Created deploy website workflow specific to the develop-postgres bran…
palisadoes Dec 27, 2024
02c0668
Created deploy website workflow specific to the develop-postgres bran…
palisadoes Dec 27, 2024
f8833b9
Created deploy website workflow specific to the develop-postgres bran…
palisadoes Dec 27, 2024
c5774a9
Created deploy website workflow specific to the develop-postgres bran…
palisadoes Dec 27, 2024
c12ef24
Created deploy website workflow specific to the develop-postgres bran…
palisadoes Dec 27, 2024
94a189b
Created deploy website workflow specific to the develop-postgres bran…
palisadoes Dec 27, 2024
374b447
Created deploy website workflow specific to the develop-postgres bran…
palisadoes Dec 27, 2024
e39e5a8
Created deploy website workflow specific to the develop-postgres bran…
palisadoes Dec 27, 2024
87f2a60
Created deploy website workflow specific to the develop-postgres bran…
palisadoes Dec 27, 2024
1c5315f
Created deploy website workflow specific to the develop-postgres bran…
palisadoes Dec 27, 2024
f02fa70
Created deploy website workflow specific to the develop-postgres bran…
palisadoes Dec 27, 2024
2ad94e6
Created deploy website workflow specific to the develop-postgres bran…
palisadoes Dec 27, 2024
1106d93
Merge remote-tracking branch 'upstream/develop-postgres' into docusaurus
palisadoes Dec 27, 2024
d47bbf7
Created deploy website workflow specific to the develop-postgres bran…
palisadoes Dec 27, 2024
8ff80f2
Merge remote-tracking branch 'upstream/develop-postgres' into docusaurus
palisadoes Dec 27, 2024
97f303a
Created deploy website workflow specific to the develop-postgres bran…
palisadoes Dec 27, 2024
3a3657f
Merge remote-tracking branch 'upstream/develop-postgres' into docusaurus
palisadoes Dec 27, 2024
8548f34
Created deploy website workflow specific to the develop-postgres bran…
palisadoes Dec 27, 2024
bb93b4e
Merge remote-tracking branch 'upstream/develop-postgres' into docusaurus
palisadoes Dec 27, 2024
8cc0faa
Created deploy website workflow specific to the develop-postgres bran…
palisadoes Dec 27, 2024
27a4534
Created deploy website workflow specific to the develop-postgres bran…
palisadoes Dec 27, 2024
ba84930
Created deploy website workflow specific to the develop-postgres bran…
palisadoes Dec 27, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/push-deploy-website.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
##############################################################################

Check warning on line 1 in .github/workflows/push-deploy-website.yml

View workflow job for this annotation

GitHub Actions / Performs linting, formatting, type-checking, checking for different source and target branch

File ignored by default.
##############################################################################
#
# NOTE!
Expand Down Expand Up @@ -26,7 +26,13 @@
# Run only if the develop-postgres branch and not dependabot
if: ${{ github.actor != 'dependabot[bot]' }}
environment:
name: gh-pages
# This "name" has to be the repos' branch that contains
# the current active website. There must be an entry for
# the same branch in the PalisadoesFoundation's
# "Code and automation > Environments > gigithub-pages"
# menu. The branch "name" must match the branch in the
# "on.push.branches" section at the top of this file
name: develop-postgres
url: https://docs-admin.talawa.io
steps:
- uses: actions/checkout@v4
Expand Down
123 changes: 46 additions & 77 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
##############################################################################

Check warning on line 1 in .github/workflows/push.yml

View workflow job for this annotation

GitHub Actions / Performs linting, formatting, type-checking, checking for different source and target branch

File ignored by default.
##############################################################################
#
# NOTE!
Expand All @@ -9,85 +9,54 @@
##############################################################################
##############################################################################

# name: PUSH Workflow - All Branches
name: PUSH Workflow - All Branches

# on:
# push:
# branches:
# - '**'
on:
push:
branches:
- '**'

# env:
# CODECOV_UNIQUE_NAME: CODECOV_UNIQUE_NAME-${{ github.run_id }}-${{ github.run_number }}
env:
CODECOV_UNIQUE_NAME: CODECOV_UNIQUE_NAME-${{ github.run_id }}-${{ github.run_number }}

# jobs:
# Code-Coverage:
# if: ${{ github.actor != 'dependabot[bot]' }}
# name: Test and Calculate Code Coverage
# runs-on: ubuntu-latest
# strategy:
# matrix:
# node-version: [22.x]
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-node@v4
# with:
# node-version: ${{ matrix.node-version }}
jobs:
Code-Coverage:
if: ${{ github.actor != 'dependabot[bot]' }}
name: Test and Calculate Code Coverage
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22.x]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

# - name: Cache node modules
# id: cache-npm
# uses: actions/cache@v4
# env:
# cache-name: cache-node-modules
# with:
# path: |
# ~/.npm
# node_modules
# key: ${{ runner.os }}-code-coverage-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
# restore-keys: |
# ${{ runner.os }}-code-coverage-${{ env.cache-name }}-
# ${{ runner.os }}-code-coverage-
# ${{ runner.os }}-
- name: Cache node modules
id: cache-npm
uses: actions/cache@v4
env:
cache-name: cache-node-modules
with:
path: |
~/.npm
node_modules
key: ${{ runner.os }}-code-coverage-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-code-coverage-${{ env.cache-name }}-
${{ runner.os }}-code-coverage-
${{ runner.os }}-

# - if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }}
# name: List the state of node modules
# run: npm install
# - run: npm run test -- --watchAll=false --coverage
# - name: Present and upload coverage to Codecov as ${{env.CODECOV_UNIQUE_NAME}}
# uses: codecov/codecov-action@v5
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# verbose: true
# gcov_ignore: 'docs/'
# fail_ci_if_error: false
# name: '${{env.CODECOV_UNIQUE_NAME}}'

# Deploy-Docusaurus:
# name: Deploy https://docs-admin.talawa.io website
# runs-on: ubuntu-latest
# needs: [Code-Coverage]
# # Run only if the develop-postgres branch and not dependabot
# if: ${{ github.actor != 'dependabot[bot]' && github.event.pull_request.base.ref == 'develop-postgres' }}
# environment:
# name: github-pages
# url: https://docs-admin.talawa.io
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-node@v4
# with:
# node-version: 22
# cache: yarn
# cache-dependency-path: 'docs/'
# - uses: webfactory/[email protected]
# with:
# ssh-private-key: ${{ secrets.DEPLOY_GITHUB_PAGES }}
# - name: Deploy to GitHub Pages
# env:
# USE_SSH: true
# GIT_USER: git
# working-directory: ./docs
# run: |
# git config --global user.email "[email protected]"
# git config --global user.name "gh-actions"
# yarn install --frozen-lockfile
# yarn deploy

- if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }}
name: List the state of node modules
run: npm install
- run: npm run test -- --watchAll=false --coverage
- name: Present and upload coverage to Codecov as ${{env.CODECOV_UNIQUE_NAME}}
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
gcov_ignore: 'docs/'
fail_ci_if_error: false
name: '${{env.CODECOV_UNIQUE_NAME}}'
Loading