Skip to content

Commit

Permalink
Merge branch 'master' into addtestFork
Browse files Browse the repository at this point in the history
  • Loading branch information
vishvamsinh28 authored Sep 15, 2024
2 parents b1a0a0e + f77f54b commit c828ad9
Show file tree
Hide file tree
Showing 117 changed files with 1,811 additions and 1,328 deletions.
32 changes: 32 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
coverage:
status:
project:
default:
# Set the threshold below which PRs will fail
threshold: 1%
patch:
default:
# PRs should have at least this much coverage
min: 80%
changes: no

comment:
layout: "header, diff, files, footer"
behavior: default
require_changes: yes

# Customize the behavior for pull requests
fixes:
carryforward: yes # Ensure the coverage status is maintained between runs
paths:
- "**/*.js"
- "**/*.ts"

parsers:
js:
enable_partials: yes # To show partial coverage of lines in JS files

ignore:
- "node_modules"
- "tests/mock_data"
- "**/coverage/**"
7 changes: 3 additions & 4 deletions .github/workflows/if-nodejs-pr-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: "${{ steps.nodeversion.outputs.version }}"

- name: Install dependencies
run: npm ci
- if: steps.packagejson.outputs.exists == 'true'
Expand All @@ -74,12 +75,10 @@ jobs:
run: npm run generate:assets --if-present

- if: steps.packagejson.outputs.exists == 'true'
name: Upload coverage to Codecov
name: Upload Coverage to Codecov
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673
with:
fail_ci_if_error: true
files: ./coverage/lcov.info
flags: unittests
name: codecov-umbrella
token: 25358ea8-8f8c-4ee1-aff3-282914082378
verbose: true
verbose: true
20 changes: 20 additions & 0 deletions .github/workflows/netlify-edge-functions-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Run tests for netlify edge-functions

on:
workflow_dispatch

jobs:
netlify-tests:
strategy:
matrix:
deno-version: [1.30.0]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Deno
uses: denolib/setup-deno@v2
with:
deno-version: ${{ matrix.deno-version }}
- name: Test with Deno
run: deno test --allow-env --trace-ops

2 changes: 1 addition & 1 deletion components/CaseStudyCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default function CaseStudyCard({ studies = [] }: ICaseStudyCardProps) {
return (
<div className='flex flex-wrap pt-10 lg:grid lg:grid-cols-3 lg:gap-8 lg:text-center'>
{studies.map((study, index) => (
<a key={index} href={`casestudies/${study.id}`}>
<a key={index} href={`${study.id}`}>
<div
className='max-w-sm overflow-hidden rounded-md border border-gray-200 bg-white p-4'
data-testid='CaseStudyCard-main'
Expand Down
2 changes: 1 addition & 1 deletion components/Head.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default function HeadComponent({
rssTitle = 'RSS Feed for AsyncAPI Initiative Blog',
rssLink = '/rss.xml'
}: IHeadProps) {
const url = process.env.DEPLOY_PRIME_URL || process.env.DEPLOY_URL || 'http://localhost:3000';
const url = process.env.NEXT_PUBLIC_DEPLOY_PRIME_URL || process.env.NEXT_PUBLIC_DEPLOY_URL || 'http://localhost:3000';
const appContext = useContext(AppContext);
const { path = '' } = appContext || {};
let currImage = image;
Expand Down
Loading

0 comments on commit c828ad9

Please sign in to comment.