NOSTORY: AnalyzeMethods #7
This file contains 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: Analyze Metrhods | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- vhlushchenko/NOSTORY/AnalyzeMethod | |
jobs: | |
analyzeMethods: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: ${{ env.FETCH_DEPTH }} | |
sparse-checkout: | | |
./misc | |
./js-api | |
./packages | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20.x' | |
registry-url: 'https://registry.npmjs.org' | |
- name: Upgrade npm | |
run: npm install -g npm@x | |
- name: Configure typescript | |
run: | | |
npm install typescript --save-dev | |
npm install --save-dev @types/node | |
- name: Analysis | |
working-directory: ./misc | |
env: | |
PATH_TO_PACKAGES: ../packages | |
PATH_TO_JS_API: ../js-api | |
run: | | |
ls ../packages | |
ls ../js-api | |
npx tsc --init | |
echo "$PATH_TO_JS_API" | |
echo "$PATH_TO_PACKAGES" | |
npx ts-node analyzeMethods.ts $PATH_TO_PACKAGES $PATH_TO_JS_API | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Result | |
path: misc/test-covering.csv | |
retention-days: 14 | |
if-no-files-found: warn |