feat(ci): Introduce new CI workflows for Gitea and remove GitLab CI

This commit is contained in:
2025-01-23 14:35:06 +01:00
parent 5bfcb95c94
commit 29568c88c3
17 changed files with 9564 additions and 3023 deletions

View File

@ -1,6 +1,6 @@
import { tap, expect } from '@pushrocks/tapbundle';
import { tap, expect } from '@push.rocks/tapbundle';
import * as smartfm from '../ts/index';
import * as smartfm from '../ts/index.js';
let testSmartfm = new smartfm.Smartfm({ fmType: 'yaml' });
tap.test('.parse()', async () => {
@ -11,15 +11,15 @@ testKey2: testValue2
# some markdown
`;
let parsedString = testSmartfm.parse(testString);
expect(parsedString.data).to.have.property('testKey', 'testValue');
expect(parsedString.data).to.have.property('testKey2', 'testValue2');
expect(parsedString.orig.toString()).to.equal(testString);
expect(parsedString.data).toHaveProperty('testKey', 'testValue');
expect(parsedString.data).toHaveProperty('testKey2', 'testValue2');
expect(parsedString.orig.toString()).toEqual(testString);
});
tap.test('should stringify data', async () => {
let testStringPure = `# some markdown heading\nsome first row`;
let testStringCombined = testSmartfm.stringify(testStringPure, { testData: 'hi' });
let resultString = '---\ntestData: hi\n---\n# some markdown heading\nsome first row\n';
expect(resultString).to.equal(testStringCombined);
expect(resultString).toEqual(testStringCombined);
});
tap.test('should parse a normal frontmatter file', async () => {
@ -29,7 +29,7 @@ heythere: awesome
really
`;
let result = testSmartfm.parse(normalFile);
expect(result.data.heythere).to.equal('awesome')
expect(result.data.heythere).toEqual('awesome');
});
tap.test('should parse a commented out frontmatter file', async () => {