mirror of
https://github.com/veggiemonk/awesome-docker.git
synced 2025-01-02 11:16:48 -05:00
Move tests into subdir, QA
This commit is contained in:
parent
42da7067e8
commit
e13a2c7791
2
.github/workflows/pull_request.yml
vendored
2
.github/workflows/pull_request.yml
vendored
@ -25,6 +25,6 @@ jobs:
|
|||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
# if: steps.cache.outputs.cache-hit != 'true'
|
# if: steps.cache.outputs.cache-hit != 'true'
|
||||||
run: npm ci --ignore-scripts --no-audit --no-progress --prefer-offline
|
run: npm ci --ignore-scripts --no-audit --no-progress --prefer-offline
|
||||||
- run: npm run test
|
- run: npm run test-pr
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -8,4 +8,5 @@ dist
|
|||||||
website/index.html
|
website/index.html
|
||||||
website/table.html
|
website/table.html
|
||||||
|
|
||||||
|
.idea
|
||||||
**/.DS_Store
|
**/.DS_Store
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
"main": "build.js",
|
"main": "build.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "rimraf ./dist/ && node build.js",
|
"build": "rimraf ./dist/ && node build.js",
|
||||||
"test": "node pull_request.js"
|
"test-pr": "node tests/pull_request.js"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
@ -17,7 +17,6 @@ const LINKS_OPTIONS = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
const LOG = {
|
const LOG = {
|
||||||
error: (...args) => console.error('❌ ERROR', args),
|
error: (...args) => console.error('❌ ERROR', args),
|
||||||
error_string: (...args) =>
|
error_string: (...args) =>
|
||||||
@ -86,12 +85,6 @@ async function batch_fetch({ arr, get, post_filter_func, BATCH_SIZE = 8 }) {
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
const extract_repos = (arr) =>
|
|
||||||
arr
|
|
||||||
.map((e) => e.substr('https://github.com/'.length).split('/'))
|
|
||||||
.filter((r) => r.length === 2 && r[1] !== '');
|
|
||||||
|
|
||||||
|
|
||||||
const exclude_length = exclude.length;
|
const exclude_length = exclude.length;
|
||||||
const exclude_from_list = (link) => {
|
const exclude_from_list = (link) => {
|
||||||
let is_excluded = false;
|
let is_excluded = false;
|
||||||
@ -144,6 +137,8 @@ async function main() {
|
|||||||
|
|
||||||
console.log(`checking ${github_links.length} GitHub repositories...`);
|
console.log(`checking ${github_links.length} GitHub repositories...`);
|
||||||
|
|
||||||
|
console.log(`skipping GitHub repository check. Run "npm run test" to execute them manually.`);
|
||||||
|
|
||||||
console.log({
|
console.log({
|
||||||
TEST_PASSED: !has_error.show,
|
TEST_PASSED: !has_error.show,
|
||||||
EXTERNAL_LINKS: external_links.length,
|
EXTERNAL_LINKS: external_links.length,
|
Loading…
Reference in New Issue
Block a user