-
-
Notifications
You must be signed in to change notification settings - Fork 811
93 lines (85 loc) · 3.06 KB
/
push.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
##############################################################################
##############################################################################
#
# NOTE!
#
# Please read the README.md file in this directory that defines what should
# be placed in this file
#
##############################################################################
##############################################################################
# name: PUSH Workflow - All Branches
# on:
# push:
# branches:
# - '**'
# 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 }}
# - 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