mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-10-03 07:13:09 +00:00
Merge branch 'main' into main
This commit is contained in:
28 files changed
+207
-24
No files matched your search
@@ -21,10 +21,15 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Run tests
|
||||
run: |
|
||||
npm install
|
||||
npx ava tests/*.test.js
|
||||
|
||||
- name: Generate creds.json
|
||||
run: echo '{"cloudflare":{"TYPE":"CLOUDFLAREAPI","apitoken":"$CLOUDFLARE_API_TOKEN"}}' > ./creds.json
|
||||
|
||||
- name: Publish
|
||||
- name: Push DNS records
|
||||
uses: is-a-dev/dnscontrol-action@main
|
||||
env:
|
||||
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||
|
||||
@@ -19,14 +19,13 @@ concurrency:
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
dns:
|
||||
name: DNS
|
||||
dnscontrol:
|
||||
name: DNSControl
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Check
|
||||
uses: is-a-dev/dnscontrol-action@main
|
||||
- uses: is-a-dev/dnscontrol-action@main
|
||||
with:
|
||||
args: check
|
||||
|
||||
@@ -38,5 +37,4 @@ jobs:
|
||||
|
||||
- run: npm install
|
||||
|
||||
- name: Run tests
|
||||
run: npx ava tests/*.test.js
|
||||
- run: npx ava tests/*.test.js
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"owner": {
|
||||
"username": "nilsraccoon",
|
||||
"discord": "1129507464589627512"
|
||||
},
|
||||
"record": {
|
||||
"TXT": "did=did:plc:25w7vwbzb2e3h7cnflqskp37"
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"owner": {
|
||||
"username": "RadioactivePotato",
|
||||
"discord": "krunchiekrunch._."
|
||||
"discord": "1166013268008120340"
|
||||
},
|
||||
"record": {
|
||||
"TXT": "dh=df2bf9fb87a1dc3ee29c6ddfa51ed86da28581c5"
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"owner": {
|
||||
"username": "devhammed",
|
||||
"email": "hey@hammed.dev"
|
||||
},
|
||||
"record": {
|
||||
"TXT": "7672b068b3140a9fbaaf9bfe0ab136"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"owner": {
|
||||
"username": "NarasimaPandiyan",
|
||||
"email": "cs42059@gmail.com"
|
||||
},
|
||||
"record": {
|
||||
"TXT": "0cd2fb39489f7652da9a4942df4a75"
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"owner": {
|
||||
"username": "RadioactivePotato",
|
||||
"discord": "krunchiekrunch._."
|
||||
"discord": "1166013268008120340"
|
||||
},
|
||||
"record": {
|
||||
"TXT": "05dc6febabf44f8decab35d01609ee"
|
||||
|
||||
File renamed without changes.
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"owner": {
|
||||
"username": "willymateo",
|
||||
"email": "matheoowilly@gmail.com",
|
||||
"discord": "willycocolon"
|
||||
},
|
||||
"record": {
|
||||
"TXT": "vc-domain-verify=willymateo.is-a.dev,6c7018f1721c84a520df"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"description": "alireza mohebbi threejs project - aasoft.ir",
|
||||
"owner": {
|
||||
"username": "aasoftir",
|
||||
"email": "aasoftmohebbi@gmail.com"
|
||||
},
|
||||
"record": {
|
||||
"URL": "https://glitch-text-threejs.vercel.app/"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"owner": {
|
||||
"username": "boudjoo",
|
||||
"email": "abdouboudjo1@gmail.com"
|
||||
},
|
||||
"record": {
|
||||
"CNAME": "boudjoo.github.io"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"owner": {
|
||||
"username": "ItzYoVishal",
|
||||
"email": "rockstarelitecoc@gmail.com"
|
||||
},
|
||||
"record": {
|
||||
"A": ["4.157.244.201"]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"owner": {
|
||||
"username": "ALEXXHUMILDE",
|
||||
"email": "alexxcrack3@gmail.com"
|
||||
},
|
||||
"record": {
|
||||
"CNAME": "enlaces-alexxhumilde.netlify.app"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"owner": {
|
||||
"username": "fabianf4",
|
||||
"email": "fabianfa.munoz@gmail.com"
|
||||
},
|
||||
"record": {
|
||||
"CNAME": "fabianf4.github.io"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"description": "The portfolio site of Gülşah Düzgün",
|
||||
"repo": "https://github.com/GulsahDuzgun/Portfolio",
|
||||
"owner": {
|
||||
"username": "GulsahDuzgun",
|
||||
"email": "duzgun.gulsah27@gmail.com"
|
||||
},
|
||||
"record": {
|
||||
"CNAME": "gulsah.netlify.app"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"description": "Link to my portfolio site.",
|
||||
"repo": "https://github.com/devhammed/devhammed.github.io",
|
||||
"owner": {
|
||||
"username": "devhammed",
|
||||
"email": "hey@hammed.dev"
|
||||
},
|
||||
"record": {
|
||||
"CNAME": "devhammed.github.io"
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -3,7 +3,7 @@
|
||||
"repo": "https://github.com/RadioactivePotato/krunch-is-a-dev",
|
||||
"owner": {
|
||||
"username": "RadioactivePotato",
|
||||
"discord": "krunchiekrunch._."
|
||||
"discord": "1166013268008120340"
|
||||
},
|
||||
"record": {
|
||||
"CNAME": "krunch.pages.dev"
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
{
|
||||
"owner": {
|
||||
"username": "RadioactivePotato",
|
||||
"discord": "krunchiekrunch._."
|
||||
},
|
||||
"record": {
|
||||
"CNAME": "cname.short.io"
|
||||
}
|
||||
}
|
||||
@@ -4,7 +4,6 @@
|
||||
"email": "luis073094@gmail.com"
|
||||
},
|
||||
"record": {
|
||||
"URL": "https://portafolioluisandre.azurewebsites.net",
|
||||
"A": ["20.206.176.7"]
|
||||
"URL": "https://portafolioluisandre.azurewebsites.net"
|
||||
}
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"description": "ImprovMX Email",
|
||||
"description": "ImprovMX Mail Forwarding",
|
||||
"owner": {
|
||||
"username": "RadioactivePotato",
|
||||
"discord": "krunchiekrunch._."
|
||||
"discord": "1166013268008120340"
|
||||
},
|
||||
"record": {
|
||||
"MX": ["mx1.improvmx.com", "mx2.improvmx.com"],
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"description": "Developer portfolio",
|
||||
"repo": "https://github.com/mtoranzo",
|
||||
"owner": {
|
||||
"username": "mtoranzo",
|
||||
"email": "mtoranzo@gmail.com"
|
||||
},
|
||||
"record": {
|
||||
"CNAME": "mtoranzo.github.io"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"description": "profile-tuan.dev",
|
||||
"owner": {
|
||||
"username": "tuannguyen2002",
|
||||
"email": "nxmtuan.2002@gmail.com",
|
||||
"discord": "nightfury06749"
|
||||
},
|
||||
"record": {
|
||||
"CNAME": "cname.vercel-dns.com"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"description": "Simple Portfolio and Blog Website",
|
||||
"repo": "https://github.com/sticknologic",
|
||||
"owner": {
|
||||
"username": "sticknologic",
|
||||
"x": "STICKnoLOGIC",
|
||||
"facebook":"STICKnoLOGIC",
|
||||
"bsky":"STICKnoLOGIC"
|
||||
},
|
||||
"record": {
|
||||
"NS": [
|
||||
"ns1.heliohost.org",
|
||||
"ns2.heliohost.org"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"description": "Landing page for tafviet.is-a.dev",
|
||||
"repo": "https://github.com/is-a-dev/docs",
|
||||
"owner": {
|
||||
"username": "is-a-dev",
|
||||
"email": "meccar@protonmail.com"
|
||||
},
|
||||
"record": {
|
||||
"CNAME": "meccar.github.io"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"owner": {
|
||||
"username": "akk1to",
|
||||
"email": "akk1to.dev@gmail.com",
|
||||
"discord": "727497287777124414"
|
||||
},
|
||||
"record": {
|
||||
"CNAME": "akk1to.github.io"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"owner": {
|
||||
"username": "willymateo",
|
||||
"email": "matheoowilly@gmail.com",
|
||||
"discord": "willycocolon"
|
||||
},
|
||||
"record": {
|
||||
"CNAME": "willymateo.vercel.app"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"description": "Portfolio for Yousef Yasser",
|
||||
"repo": "https://github.com/yys-yss/yys-yss.github.io",
|
||||
"owner": {
|
||||
"username": "yys-yss",
|
||||
"email": "yousefyassersalah@gmail.com"
|
||||
},
|
||||
"record": {
|
||||
"CNAME": "yys-yss.github.io"
|
||||
}
|
||||
}
|
||||
@@ -83,7 +83,6 @@ t("All files should have valid record types", (t) => {
|
||||
t.true(validateRecordType(key), `${file}: Invalid record type: ${key}`);
|
||||
});
|
||||
|
||||
// Specific record rules for CNAME, NS, and DS
|
||||
if (recordKeys.includes("CNAME") && !data.proxied) {
|
||||
t.is(recordKeys.length, 1, `${file}: CNAME records cannot be combined with other records unless proxied`);
|
||||
}
|
||||
@@ -98,7 +97,13 @@ t("All files should have valid record types", (t) => {
|
||||
if (recordKeys.includes("DS")) {
|
||||
t.true(recordKeys.includes("NS"), `${file}: DS records must be combined with NS records`);
|
||||
}
|
||||
|
||||
if (recordKeys.includes("URL")) {
|
||||
t.true(!recordKeys.includes("A") && !recordKeys.includes("AAAA") && !recordKeys.includes("CNAME"), `${file}: URL records cannot be combined with A, AAAA, or CNAME records`);
|
||||
}
|
||||
});
|
||||
|
||||
t.pass();
|
||||
});
|
||||
|
||||
t("All files should not have duplicate record keys", (t) => {
|
||||
|
||||
Reference in new issue
Block a user