Add find deadcode pipeline #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Find deadcode | |
| on: pull_request | |
| jobs: | |
| find_deadcode: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| - name: Create .npmrc file | |
| run: | | |
| echo "registry=https://registry.yarnpkg.com/" > .npmrc | |
| echo "@internxt:registry=https://npm.pkg.github.com" >> .npmrc | |
| echo //npm.pkg.github.com/:_authToken=${{ secrets.PERSONAL_ACCESS_TOKEN }} >> .npmrc | |
| echo "always-auth=true" >> .npmrc | |
| - name: Install dependencies | |
| run: yarn | |
| - name: Find deadcode | |
| run: npm run find-deadcode |