Skip to content
New issue

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

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

Already on GitHub? # to your account

Switch to TypeScript for unit testing #48

Merged
merged 9 commits into from
Jun 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
19 changes: 10 additions & 9 deletions .github/workflows/DataValidation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: DEBUG
run: 'for file in creeds/*; do file $file; done'
- name: Install Schema Checker
run: 'pip install jsonschema'
- name: Install Shell Spec
run: 'curl -fsSL https://git.io/shellspec | sh -s -- -y'
- name: Run Tests
run: 'shellspec'
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 16.x
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Execute Unit tests
run: npm run test
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules/
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<img src="./metadata/feature_graphic.png">
<a href="https://github.com/NonlinearFruit/Creeds.json/tree/master/creeds"><img src="https://img.shields.io/badge/documents-41-blue"></a>
<a href="https://github.com/NonlinearFruit/Creeds.json/actions/workflows/DataValidation.yml"><img src="https://img.shields.io/github/actions/workflow/status/NonlinearFruit/Creeds.json/DataValidation.yml?label=tests&branch=master"></a>
<a href="https://github.com/NonlinearFruit/Creeds.json/tree/master/spec"><img src="https://img.shields.io/badge/test%20count-247-yellowgreen"></a>
<a href="https://github.com/NonlinearFruit/Creeds.json/tree/master/spec"><img src="https://img.shields.io/badge/test%20count-486-yellowgreen"></a>
</p>

This is a collection of historic creeds of the Christian faith. This repo focuses on the Reformed church.
Expand All @@ -18,7 +18,6 @@ This repo as a whole is not licensed for reuse due to the copyright right status
- [Helvetic Consensus](creeds/helvetic_consensus.json) <Translation Copyright 1990 - Martin Klauber>
- [Savoy Declaration of Faith](creeds/savoy_declaration.json) <Copyright - Reformed Standards>
- [Shema Yisrael](creeds/shema_yisrael.json) <Copyright - Crossway>
- [Westminster Confession of Faith](creeds/westminster_confession_of_faith.json) <Copyright - Reformed Standards>
## Creeds Included

Read more about the json structure [here](https://github.com/NonlinearFruit/Creeds.json/wiki/Json-Structure)
Expand Down Expand Up @@ -59,7 +58,7 @@ Read more about the json structure [here](https://github.com/NonlinearFruit/Cree
- [x] [Tertullian's Rule of Faith (c. 200)](creeds/tertullians_rule_of_faith.json)
- [x] [Tetrapolitan Confession (1530)](creeds/tetrapolitan_confession.json)
- [x] [Waldensian Confession (1120)](creeds/waldensian_confession.json)
- [x] [Westminster Confession of Faith (1646)](creeds/westminster_confession_of_faith.json)
- [x] [Westminster Confession of Faith (1647)](creeds/westminster_confession_of_faith.json)
- [x] [Westminster Larger Catechism (1647)](creeds/westminster_larger_catechism.json)
- [x] [Westminster Shorter Catechism (1647)](creeds/westminster_shorter_catechism.json)
- [x] [Zwingli's 67 Articles (1523)](creeds/zwinglis_67_articles.json)
Expand All @@ -76,6 +75,7 @@ Read more about the json structure [here](https://github.com/NonlinearFruit/Cree
- [Standards Bot](https://github.com/Nokeo08/standardsbot) » A reddit bot that is triggered by reddit comments made in /r/Reformed that references various christian confessions and catechisms. ![GitHub last commit](https://img.shields.io/github/last-commit/Nokeo08/standardsbot.svg) ![GitHub Repo stars](https://img.shields.io/github/stars/Nokeo08/standardsbot.svg)
- [Reformed Standards](https://github.com/reformed-standards/compendium) » The compendium is a collection of reformed documents, such as confessions and catechisms. ![GitHub last commit](https://img.shields.io/github/last-commit/reformed-standards/compendium.svg) ![GitHub Repo stars](https://img.shields.io/github/stars/reformed-standards/compendium.svg)
## Websites
- [Catechesis](https://www.catechesis.app) » An open-source app designed to help you catechize yourself, your family, and your church - by engaging with catechisms that have stood the test of time throughout the church age.
- [Creeds](https://nonlinearfruit.github.io/Creeds-Blazor/) » Read, search, copy classic creeds
- [Reformed Standards](https://reformedstandards.com) » All the reformed documents in one tidy package
- [Creeds and Confessions](https://confessions.azurewebsites.net) »
Expand Down
5 changes: 5 additions & 0 deletions metadata/resources.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@
}
],
"Websites": [
{
"Title": "Catechesis",
"Url": "https://www.catechesis.app",
"Description": "An open-source app designed to help you catechize yourself, your family, and your church - by engaging with catechisms that have stood the test of time throughout the church age."
},
{
"Title": "Creeds",
"Url": "https://nonlinearfruit.github.io/Creeds-Blazor/",
Expand Down
4 changes: 2 additions & 2 deletions metadata/update_readme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ END
image="https://img.shields.io/badge/documents-$(ls creeds/ -Aq | wc -l)-blue"
link="https://github.com/NonlinearFruit/Creeds.json/tree/master/creeds"
echo " <a href=\"$link\"><img src=\"$image\"></a>" >> $readme
image="https://img.shields.io/github/workflow/status/NonlinearFruit/Creeds.json/Validate%20Data?label=tests"
image="https://img.shields.io/github/actions/workflow/status/NonlinearFruit/Creeds.json/DataValidation.yml?label=tests&branch=master"
link="https://github.com/NonlinearFruit/Creeds.json/actions/workflows/DataValidation.yml"
echo " <a href=\"$link\"><img src=\"$image\"></a>" >> $readme
image="https://img.shields.io/badge/test%20count-$(shellspec --count | cut -d' ' -f2)-yellowgreen"
image="https://img.shields.io/badge/test%20count-$(npm run test-json -s | jq '.numTotalTests')-yellowgreen"
link="https://github.com/NonlinearFruit/Creeds.json/tree/master/spec"
echo " <a href=\"$link\"><img src=\"$image\"></a>" >> $readme
cat >> $readme << 'END'
Expand Down
Loading