Compare commits
74 Commits
Author | SHA1 | Date |
---|---|---|
Thomas A. Christensen II | d7b44e949d | 2 years ago |
Thomas A. Christensen II | 38799ef3a3 | 2 years ago |
Thomas A. Christensen II | 3e64306429 | 2 years ago |
Thomas A. Christensen II | 5c0b7046b7 | 2 years ago |
Thomas A. Christensen II | 8822e5ee5f | 2 years ago |
Thomas A. Christensen II | 1495857146 | 2 years ago |
Thomas A. Christensen II | 47014198e4 | 2 years ago |
Thomas A. Christensen II | edd49b855d | 2 years ago |
Thomas A. Christensen II | 24dfd282a2 | 2 years ago |
Thomas A. Christensen II | d94d76c840 | 2 years ago |
Thomas A. Christensen II | d66bab11a7 | 2 years ago |
nickbarrett645 | c1f13e0218 | 2 years ago |
Will Rivendell | eda93b34a4 | 2 years ago |
nickbarrett645 | 8b358fd8ca | 2 years ago |
nickbarrett645 | 6a66be24f7 | 2 years ago |
Nick Barrett | 2eb7718bff | 2 years ago |
nickbarrett645 | f2c7997c7e | 2 years ago |
Russel Fones | b91062bab9 | 2 years ago |
nickbarrett645 | 449235aceb | 2 years ago |
Nick Barrett | 88f4e3cf4e | 2 years ago |
Nick Barrett | 4c3ca7c896 | 2 years ago |
Thomas A. Christensen II | c3fb34c758 | 2 years ago |
Jacob Gorney | a3fc6c69e9 | 2 years ago |
Thomas A. Christensen II | d5f6b82af2 | 2 years ago |
Thomas A. Christensen II | fca8ecb995 | 2 years ago |
Eric Bond | f1f173a7ed | 2 years ago |
Declan Shanaghy | 3a33ac2b71 | 2 years ago |
Declan Shanaghy | fb9e881be2 | 2 years ago |
declanshanaghy | 262d463708 | 2 years ago |
Declan Shanaghy | 35fd621ab4 | 2 years ago |
Declan Shanaghy | d370e05cd7 | 2 years ago |
declanshanaghy | 184bf3ded2 | 2 years ago |
Eric Bond | f8c98e61ef | 2 years ago |
Declan Shanaghy | 1dc59a3467 | 3 years ago |
declanshanaghy | 3359230d2d | 3 years ago |
Declan Shanaghy | b0842f6918 | 3 years ago |
declanshanaghy | f3b3f2c2fe | 3 years ago |
Declan Shanaghy | e65832743a | 3 years ago |
declanshanaghy | 2a04b54cea | 3 years ago |
Declan Shanaghy | d6716a40fd | 3 years ago |
Declan Shanaghy | 27c1fa29e3 | 3 years ago |
declanshanaghy | 60d16f3833 | 3 years ago |
Declan Shanaghy | 831b2cea50 | 3 years ago |
declanshanaghy | 2f35d4b463 | 3 years ago |
Thomas A. Christensen II | 2b91472424 | 3 years ago |
Thomas A. Christensen II | 1678367efb | 3 years ago |
Thomas A. Christensen II | 95d7587408 | 3 years ago |
Thomas A. Christensen II | 40711973af | 3 years ago |
Declan Shanaghy | cc1a1070c3 | 3 years ago |
declanshanaghy | b2f9b55864 | 3 years ago |
Brian Krueger | 625f213241 | 3 years ago |
Hafiz Suara | de89788c49 | 3 years ago |
Señor Agosto | a48c3c3811 | 3 years ago |
Bill Chung | 8f58fde599 | 3 years ago |
Jan Bieroń | b7d32bf2d3 | 3 years ago |
Trevor VanDoren | ae98b64341 | 3 years ago |
declanshanaghy | 6500a1ee57 | 3 years ago |
MillironX | 46ef3d4dd5 | 3 years ago |
MillironX | 7f3d0c0235 | 3 years ago |
MillironX | e877672b65 | 3 years ago |
MillironX | 5359911c84 | 3 years ago |
MillironX | 3bd03f0d99 | 3 years ago |
MillironX | 29c2344622 | 3 years ago |
MillironX | fa5c207540 | 3 years ago |
MillironX | 7ecd696db4 | 3 years ago |
MillironX | 56d791884e | 3 years ago |
MillironX | 33dc59d6c9 | 3 years ago |
MillironX | 9048df37aa | 3 years ago |
MillironX | fb1432c303 | 3 years ago |
TheHoff10 | c0a667cef3 | 3 years ago |
Jacob Wilkins | 190c01e05a | 3 years ago |
weeb-edu | a4b0786c2e | 3 years ago |
Bryce Easley | f27b11f1f0 | 3 years ago |
Declan Shanaghy | d234f127a4 | 3 years ago |
@ -0,0 +1,21 @@
|
||||
name: Build and Publish
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "v[0-9]+.*"
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 16
|
||||
registry-url: https://npm.pkg.github.com
|
||||
scope: "@MillironX"
|
||||
- run: npm install
|
||||
- run: npm test
|
||||
- run: npm run build
|
||||
- run: npm publish
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
@ -1,4 +1,4 @@
|
||||
node_modules
|
||||
/lib
|
||||
/coverage
|
||||
.idea
|
||||
.idea
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,21 +1,21 @@
|
||||
import {generateName, generateNameWithNumber, left, right} from "../index";
|
||||
import { generateName, generateNameWithNumber, left, right } from "../index";
|
||||
|
||||
|
||||
describe('Docker names', () => {
|
||||
test('should generate a random name', () => {
|
||||
describe("Docker names", () => {
|
||||
test("should generate a random name", () => {
|
||||
const name = generateName();
|
||||
const parts = name.split('-');
|
||||
const parts = name.split("-");
|
||||
expect(parts).toHaveLength(2);
|
||||
expect(left).toContain(parts[0]);
|
||||
expect(right).toContain(parts[1]);
|
||||
})
|
||||
});
|
||||
|
||||
test("should generate a random name with a number", () => {
|
||||
const nameWithNumber = generateNameWithNumber();
|
||||
const parts = nameWithNumber.split('-');
|
||||
expect(parts).toHaveLength(3);
|
||||
expect(left).toContain(parts[0]);
|
||||
expect(right).toContain(parts[1]);
|
||||
expect(parseInt(parts[2])).toBeGreaterThan(0);
|
||||
})
|
||||
})
|
||||
const parts = nameWithNumber.split("_");
|
||||
expect(parts).toHaveLength(2);
|
||||
const nameparts = parts[0].split("-");
|
||||
expect(left).toContain(nameparts[0]);
|
||||
expect(right).toContain(nameparts[1]);
|
||||
expect(parseInt(parts[1])).toBeGreaterThan(0);
|
||||
});
|
||||
});
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue