diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index aa860562..00000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,33 +0,0 @@ -# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node -# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions - -name: Node.js CI - -on: - push: - branches: [ main ] - pull_request: - branches: '*' - -jobs: - quality: - - runs-on: ${{ matrix.os }} - - strategy: - matrix: - node-version: [16.x] - os: [ubuntu-latest] - # additional operating systems: windows-latest, mac-latest - # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ - - steps: - - uses: actions/checkout@v3 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} - cache: 'npm' - - run: npm ci - - run: npm run build --if-present - - run: npm test diff --git a/.github/workflows/tn-p1.yml b/.github/workflows/tn-p1.yml new file mode 100644 index 00000000..80ffe6e0 --- /dev/null +++ b/.github/workflows/tn-p1.yml @@ -0,0 +1,27 @@ +name: "tn-p1" + +on: + push: + branches: + - main + pull_request: + branches: + - "*" + +jobs: + tn-p1: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 16 + cache: "npm" + cache-dependency-path: package-lock.json + - run: npm ci + - name: build + run: npm run build + - name: test + uses: ArtiomTr/jest-coverage-report-action@v2 + with: + test-script: npm run test