Skip to content

Commit d11200f

Browse files
authored
Merge pull request #11 from GDIBass/v0.0.1
v0.0.1 - test
2 parents ce69beb + 95987c6 commit d11200f

436 files changed

Lines changed: 50004 additions & 6473 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.eslintrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"eslint-comments/no-use": "off",
1313
"import/no-namespace": "off",
1414
"no-unused-vars": "off",
15+
"filenames/match-regex": "off",
1516
"@typescript-eslint/no-unused-vars": "error",
1617
"@typescript-eslint/explicit-member-accessibility": ["error", {"accessibility": "no-public"}],
1718
"@typescript-eslint/no-require-imports": "error",
@@ -22,6 +23,8 @@
2223
"@typescript-eslint/consistent-type-assertions": "error",
2324
"@typescript-eslint/explicit-function-return-type": ["error", {"allowExpressions": true}],
2425
"@typescript-eslint/func-call-spacing": ["error", "never"],
26+
"no-shadow": "off",
27+
"@typescript-eslint/no-shadow": ["error"],
2528
"@typescript-eslint/no-array-constructor": "error",
2629
"@typescript-eslint/no-empty-interface": "error",
2730
"@typescript-eslint/no-explicit-any": "error",

.github/workflows/check-dist.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,12 @@ jobs:
2323
steps:
2424
- uses: actions/checkout@v3
2525

26-
- name: Set Node.js 16.x
26+
- name: Set Node.js 16.19.0
2727
uses: actions/setup-node@v3.6.0
2828
with:
29-
node-version: 16.x
30-
29+
node-version: 16.19.0
30+
- name: Check npm version
31+
run: npm --version
3132
- name: Install dependencies
3233
run: npm ci
3334

@@ -38,14 +39,14 @@ jobs:
3839
3940
- name: Compare the expected and actual dist/ directories
4041
run: |
41-
if [ "$(git diff --ignore-space-at-eol dist/ | wc -l)" -gt "0" ]; then
42+
if [ "$(git diff --text --ignore-space-at-eol dist/ | wc -l)" -gt "0" ]; then
4243
echo "Detected uncommitted changes after build. See status below:"
4344
git diff
4445
exit 1
4546
fi
4647
id: diff
4748

48-
# If index.js was different than expected, upload the expected version as an artifact
49+
# If index.js was different from expected, upload the expected version as an artifact
4950
- uses: actions/upload-artifact@v3
5051
if: ${{ failure() && steps.diff.conclusion == 'failure' }}
5152
with:

.github/workflows/publish.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Publish
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- uses: actions/setup-node@v3.6.0
13+
with:
14+
node-version: 16
15+
registry-url: https://registry.npmjs.org/
16+
- run: npm install
17+
- run: npm publish --access public
18+
env:
19+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ jobs:
1010
build: # make sure build/ci work properly
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v3
14+
- name: setup node-gyp
15+
run: npm install -g node-gyp@latest
1416
- run: |
1517
npm install
1618
- run: |
@@ -20,5 +22,3 @@ jobs:
2022
steps:
2123
- uses: actions/checkout@v3
2224
- uses: ./
23-
with:
24-
milliseconds: 1000

__tests__/alliance.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ test('duplicate id for member_status fails', async () => {
2323
} catch (error) {
2424
expect(error).toBeInstanceOf(InvalidConfig);
2525
if (error instanceof InvalidConfig) {
26-
expect(error.message).toContain('Duplicate ID found in child: member_status');
26+
expect(error.message).toContain('Duplicate ID found | child=member_status');
2727
}
2828
}
2929
});
@@ -56,7 +56,7 @@ test('missing member status fails', async () => {
5656
} catch (error) {
5757
expect(error).toBeInstanceOf(MissingRequiredKey);
5858
if (error instanceof MissingRequiredKey) {
59-
expect(error.message).toContain('Config is missing key: AllianceConfig:member_status');
59+
expect(error.message).toContain('Config is missing key | AllianceConfig:member_status');
6060
}
6161
}
6262
});

__tests__/colors.test.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1+
import {expect, test} from '@jest/globals'
2+
3+
test('colors.test.js', async() => {
4+
expect(true).toBeTruthy();
5+
});
16
// TODO: Test this
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1+
import {expect, test} from '@jest/globals'
2+
3+
test('AllianceConfig.test.ts', async() => {
4+
expect(true).toBeTruthy();
5+
});
16
// TODO: This and all negative tests
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1+
import {expect, test} from '@jest/globals'
2+
3+
test('AscensionsConfig.test.ts', async() => {
4+
expect(true).toBeTruthy();
5+
});
16
// TODO: This and all negative tests
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1+
import {expect, test} from '@jest/globals'
2+
3+
test('ClassesConfig.test.ts', async() => {
4+
expect(true).toBeTruthy();
5+
});
16
// TODO: This and all negative tests
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1+
import {expect, test} from '@jest/globals'
2+
3+
test('ColorsConfig.test.ts', async() => {
4+
expect(true).toBeTruthy();
5+
});
16
// TODO: Test this

0 commit comments

Comments
 (0)