From 83cef614be70a5ca443a911f634c5cda89e679be Mon Sep 17 00:00:00 2001 From: Kevin Date: Wed, 13 Nov 2024 15:57:20 -0800 Subject: [PATCH] RELEASE:modified-ci --- .github/workflows/ci.yml | 76 ---------------------------------------- 1 file changed, 76 deletions(-) delete mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index 1717280..0000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,76 +0,0 @@ -name: CI - -on: - pull_request: - push: - branches: - - main - -env: - NODE_VERSION: 18 - -jobs: - build: - name: 👷 Build - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: ${{ env.NODE_VERSION }} - # Skip post-install scripts here, as a malicious - # script could steal NODE_AUTH_TOKEN. - - name: Install dependencies - run: yarn install - env: - CI: true - - name: Building - run: yarn build - - gitleaks: - name: 🔒 Run Git leaks - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: ${{ env.NODE_VERSION }} - # Skip post-install scripts here, as a malicious - # script could steal NODE_AUTH_TOKEN. - - name: Install dependencies - run: yarn install - env: - CI: true - - name: Gitleaks - run: yarn leaks - shell: bash - - unit-test: - name: 👔 Run Unit Tests - runs-on: ubuntu-latest - strategy: - matrix: - node-version: [16, 18, 20] - steps: - - name: Checkout code - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: ${{ matrix.node-version }} - # Skip post-install scripts here, as a malicious - # script could steal NODE_AUTH_TOKEN. - - name: Install dependencies - run: yarn install - env: - CI: true - - name: Testing - run: npm test - - name: Coverage check - uses: devmasx/coverage-check-action@v1.2.0 - with: - type: lcov - min_coverage: 15 - result_path: coverage/lcov.info - token: ${{ github.token }}