diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..bf96198 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1 @@ +* @vechain/public-repos \ No newline at end of file diff --git a/.github/workflows/validate_apps.yml b/.github/workflows/validate_apps.yml new file mode 100644 index 0000000..86a9410 --- /dev/null +++ b/.github/workflows/validate_apps.yml @@ -0,0 +1,25 @@ +name: Validate Links +on: + workflow_dispatch: + +jobs: + validate-links: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - uses: actions/setup-node@v3 + with: + node-version: '16' + cache: 'npm' + + - name: Install Dependencies + run: npm ci + + - name: Run validation + run: npm run validate:links + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/scripts/validate.ts b/scripts/validate.ts index 8590343..00bedcb 100644 --- a/scripts/validate.ts +++ b/scripts/validate.ts @@ -107,6 +107,7 @@ const checkLink = async (appDir: string) => { const link = manifest.href try { + console.log(`checking ${link}`) await axios.get(link) } catch (e) { throw new ValidationError(`${link} is not reachable`)