diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 3e0ce2c..ec97ae5 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -20,6 +20,11 @@ jobs: - name: Checkout Code uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.11' + - name: Setup Node.js Environment uses: actions/setup-node@v4 with: @@ -27,13 +32,19 @@ jobs: - name: Install Dependencies run: | - echo "before_time=$(date +%s)" >> $GITHUB_ENV + echo "install_before_time=$(date +%s.%N)" >> $GITHUB_ENV yarn install --frozen-lockfile + echo "install_after_time=$(date +%s.%N)" >> $GITHUB_ENV + install_time=$(python -c "print($install_after_time - $install_before_time)") + echo "installTime='$install_time'" >> $GITHUB_ENV - name: Build Website run: | + echo "before_time=$(date +%s.%N)" >> $GITHUB_ENV yarn build - echo "after_time=$(date +%s)" >> $GITHUB_ENV + echo "after_time=$(date +%s.%N)" >> $GITHUB_ENV + build_time=$(python -c "print($after_time - $before_time)") + echo "buildTime='$build_time'" >> $GITHUB_ENV - name: Verify Build Output run: | @@ -56,11 +67,20 @@ jobs: with: github-token: ${{ secrets.TOKEN_GITHUB }} script: | + const installTime = process.env.installTime; + const buildTime = process.env.buildTime; + const table = ` + | Step | Time (seconds) | + |----------------------|----------------| + | Install Dependencies | ${installTime} | + | Build Website | ${buildTime} | + `; + const commentBody = `✅ Test server functionality passed with the following times for each step:\n\n${table}`; github.rest.issues.createComment({ issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo, - body: 'Test server functionality passed ✅ with total CI time: ' + (process.env.after_time - process.env.before_time) + ' seconds' + body: commentBody }); deploy-docusaurus: diff --git a/.markdownlint.json b/.markdownlint.json deleted file mode 100644 index 62d4e88..0000000 --- a/.markdownlint.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "code-block-style": { - "style": "fenced" - }, - "code-fence-style": { - "style": "backtick" - }, - "emphasis-style": { - "style": "asterisk" - }, - "fenced-code-language": { - "allowed_languages": ["yaml"], - "language_only": true - }, - "heading-style": { - "style": "atx" - }, - "hr-style": { - "style": "---" - }, - "line-length": false, - "link-image-style": { - "autolink": false, - "inline": false, - "collapsed": false, - "shortcut": false - }, - "no-duplicate-heading": { - "siblings_only": true - }, - "ol-prefix": { - "style": "ordered" - }, - "proper-names": { - "code_blocks": false, - "names": [ - "CommonMark", - "JavaScript", - "Markdown", - "markdownlint", - "markdownlint-cli2" - ] - }, - "strong-style": { - "style": "asterisk" - }, - "table-pipe-style": { - "style": "leading_and_trailing" - }, - "ul-style": { - "style": "dash" - }, - "no-inline-html": false -}