From 231f5c99c5b1382362073fc6e2bbe91ec87899e6 Mon Sep 17 00:00:00 2001 From: Kyle Fang Date: Tue, 24 Sep 2024 11:44:02 +0000 Subject: [PATCH] fix: github action --- .github/workflows/main.yml | 32 -------------------------------- .github/workflows/size.yml | 12 ------------ test/index.test.ts | 7 ------- 3 files changed, 51 deletions(-) delete mode 100644 .github/workflows/main.yml delete mode 100644 .github/workflows/size.yml delete mode 100644 test/index.test.ts diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index f81f3b3..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: CI -on: [push] -jobs: - build: - name: Build, lint, and test on Node ${{ matrix.node }} and ${{ matrix.os }} - - runs-on: ${{ matrix.os }} - strategy: - matrix: - node: ['14.x', '16.x'] - os: [ubuntu-latest, windows-latest, macOS-latest] - - steps: - - name: Checkout repo - uses: actions/checkout@v4 - - - name: Use Node ${{ matrix.node }} - uses: actions/setup-node@v4 - with: - node-version: ${{ matrix.node }} - - - name: Install deps and build (with cache) - uses: bahmutov/npm-install@v1 - - - name: Lint - run: yarn lint - - - name: Test - run: yarn test --ci --coverage --maxWorkers=2 - - - name: Build - run: yarn build diff --git a/.github/workflows/size.yml b/.github/workflows/size.yml deleted file mode 100644 index ab3d1be..0000000 --- a/.github/workflows/size.yml +++ /dev/null @@ -1,12 +0,0 @@ -name: size -on: [pull_request] -jobs: - size: - runs-on: ubuntu-latest - env: - CI_JOB_NUMBER: 1 - steps: - - uses: actions/checkout@v4 - - uses: andresz1/size-limit-action@v1 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/test/index.test.ts b/test/index.test.ts deleted file mode 100644 index 6a214f1..0000000 --- a/test/index.test.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { sum } from '../src/index'; - -describe('sum', () => { - it('adds two numbers together', () => { - expect(sum(1, 1)).toEqual(2); - }); -});