From 106632852b0d4ae2a0d75f1354f96dd288d0629f Mon Sep 17 00:00:00 2001 From: David Makin Date: Mon, 30 Oct 2023 16:39:40 +0000 Subject: [PATCH] remove extra stuff --- .github/workflows/build_project.yml | 25 --------------- .github/workflows/lint.yml | 23 ------------- .github/workflows/rebuild_dist.yml | 50 ----------------------------- .github/workflows/release.yml | 31 ------------------ .github/workflows/renovate.yml | 19 ----------- .github/workflows/unit-tests.yml | 30 ----------------- .husky/pre-commit | 4 --- 7 files changed, 182 deletions(-) delete mode 100644 .github/workflows/build_project.yml delete mode 100644 .github/workflows/lint.yml delete mode 100644 .github/workflows/rebuild_dist.yml delete mode 100644 .github/workflows/release.yml delete mode 100644 .github/workflows/renovate.yml delete mode 100644 .github/workflows/unit-tests.yml delete mode 100755 .husky/pre-commit diff --git a/.github/workflows/build_project.yml b/.github/workflows/build_project.yml deleted file mode 100644 index 5adc1d7..0000000 --- a/.github/workflows/build_project.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: Build Action - -on: - push: - branches: - - master - pull_request: - -jobs: - getNodeVersion: - uses: gagoar/ts-node-template/.github/workflows/get_node_version.yml@main - - build: - runs-on: ubuntu-latest - needs: getNodeVersion - steps: - - uses: actions/checkout@main - - name: Setting node version to ${{ needs.getNodeVersion.outputs.node_version }} - uses: actions/setup-node@v3 - with: - node-version: '${{ needs.getNodeVersion.outputs.node_version }}' - - name: Install dependencies - run: npm install - - name: Build - run: npm run build diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml deleted file mode 100644 index f20c394..0000000 --- a/.github/workflows/lint.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: Lint - -on: - push: - branches: - - main - pull_request: - -jobs: - getNodeVersion: - uses: gagoar/ts-node-template/.github/workflows/get_node_version.yml@main - - lint: - runs-on: ubuntu-latest - needs: getNodeVersion - steps: - - uses: actions/checkout@main - - name: Setting node version to ${{ needs.getNodeVersion.outputs.node_version }} - uses: actions/setup-node@v3 - with: - node-version: '${{ needs.getNodeVersion.outputs.node_version }}' - - run: npm install - - run: npm run lint diff --git a/.github/workflows/rebuild_dist.yml b/.github/workflows/rebuild_dist.yml deleted file mode 100644 index 0aeafd7..0000000 --- a/.github/workflows/rebuild_dist.yml +++ /dev/null @@ -1,50 +0,0 @@ -name: rebuild dist/ if needed - -on: - pull_request: - -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - with: - ref: ${{github.head_ref}} - persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token - fetch-depth: 0 # otherwise, you will failed to push refs to dest repo - - - uses: actions/setup-node@v3.5.1 - with: - cache: 'npm' - node-version-file: '.nvmrc' - - - run: npm install - - name: build dist/ - run: npm run build - - run: | - STATUS=$(git diff --quiet && echo clean || echo modified) - echo "status=$(echo $STATUS)" >> $GITHUB_OUTPUT - id: gitStatus - - run: | - echo ${{ steps.gitStatus.outputs.status }} - echo ${{ contains(steps.gitStatus.outputs.status, 'modified') }} - - name: Commit dist/ files - if: contains(steps.gitStatus.outputs.status, 'modified') - run: | - set -x - git config --local user.email "action@github.com" - git config --local user.name "GitHub Action" - git commit -m "rebuild dist/" -a - - id: auth - if: contains(steps.gitStatus.outputs.status, 'modified') - uses: jnwng/github-app-installation-token-action@v2 - with: - appId: ${{ secrets.COMMIT_BUILD_TO_PR_APP_ID }} - installationId: ${{ secrets.COMMIT_BUILD_TO_PR_INSTALLATION_ID }} - privateKey: ${{ secrets.COMMIT_BUILD_TO_PR_PRIVATE_KEY }} - - name: Push changes - if: contains(steps.gitStatus.outputs.status, 'modified') - uses: ad-m/github-push-action@master - with: - github_token: ${{ steps.auth.outputs.token }} - branch: ${{github.head_ref}} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 540da9f..0000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,31 +0,0 @@ -on: - push: - # Sequence of patterns matched against refs/tags - tags: - - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 - -name: Create Release - -jobs: - build: - name: Create Release - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v3 - - name: Get release notes - id: release_notes - run: echo ::set-output name=notes::$(git log -1 --pretty=format:"%b") - - name: Create Release - id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token - with: - tag_name: ${{ github.ref }} - release_name: Release ${{ github.ref }} - body: | - Changes in this Release - ${{ steps.release_notes.outputs.notes }} - draft: false - prerelease: false diff --git a/.github/workflows/renovate.yml b/.github/workflows/renovate.yml deleted file mode 100644 index d545cf9..0000000 --- a/.github/workflows/renovate.yml +++ /dev/null @@ -1,19 +0,0 @@ -on: - push: - branches: - - renovate/* - -name: rebuild dist/ + commit for renovate - -jobs: - getNodeVersion: - uses: gagoar/ts-node-template/.github/workflows/get_node_version.yml@main - - runCommitPush: - needs: getNodeVersion - uses: gagoar/ts-node-template/.github/workflows/run_hook_commit_and_push.yml@main - secrets: - token: ${{ secrets.UPDATE_PR_TOKEN }} - with: - node_version: ${{ needs.getNodeVersion.outputs.node_version }} - hook_to_run: npm i && npm run build diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml deleted file mode 100644 index 02ef56d..0000000 --- a/.github/workflows/unit-tests.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: Unit Tests - -on: - push: - branches: - - main - pull_request: - -jobs: - getNodeVersion: - uses: gagoar/ts-node-template/.github/workflows/get_node_version.yml@main - - unit-test: - runs-on: ubuntu-latest - needs: getNodeVersion - steps: - - uses: actions/checkout@main - - name: Setting node version to ${{ needs.getNodeVersion.outputs.node_version }} - uses: actions/setup-node@v3 - with: - node-version: '${{ needs.getNodeVersion.outputs.node_version }}' - - name: Install dependencies - run: npm install - - name: jest - run: npm run test --coverage - - name: Send coverage to codecov - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - flags: unittests diff --git a/.husky/pre-commit b/.husky/pre-commit deleted file mode 100755 index 689d8ff..0000000 --- a/.husky/pre-commit +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - -# npm test