From 6bc0ecd739b9c1cbf3eae6a4ce006d6f6b52a608 Mon Sep 17 00:00:00 2001 From: Asad Date: Sun, 9 Mar 2025 11:27:08 -0400 Subject: [PATCH] refactor: removed github actions ci/cd runner --- .github/ISSUE_TEMPLATE/bug_report.yml | 68 --------------------------- .github/ISSUE_TEMPLATE/config.yml | 8 ---- .github/actions/setup/action.yml | 36 -------------- .github/workflows/ci.yml | 64 ------------------------- example/src/App.tsx | 2 +- 5 files changed, 1 insertion(+), 177 deletions(-) delete mode 100644 .github/ISSUE_TEMPLATE/bug_report.yml delete mode 100644 .github/ISSUE_TEMPLATE/config.yml delete mode 100644 .github/actions/setup/action.yml delete mode 100644 .github/workflows/ci.yml diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml deleted file mode 100644 index dc82d4a..0000000 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ /dev/null @@ -1,68 +0,0 @@ -name: 🐛 Bug report -description: Report a reproducible bug or regression in this library. -labels: [bug] -body: - - type: markdown - attributes: - value: | - # Bug report - - 👋 Hi! - - **Please fill the following carefully before opening a new issue ❗** - *(Your issue may be closed if it doesn't provide the required pieces of information)* - - type: checkboxes - attributes: - label: Before submitting a new issue - description: Please perform simple checks first. - options: - - label: I tested using the latest version of the library, as the bug might be already fixed. - required: true - - label: I tested using a [supported version](https://github.com/reactwg/react-native-releases/blob/main/docs/support.md) of react native. - required: true - - label: I checked for possible duplicate issues, with possible answers. - required: true - - type: textarea - id: summary - attributes: - label: Bug summary - description: | - Provide a clear and concise description of what the bug is. - If needed, you can also provide other samples: error messages / stack traces, screenshots, gifs, etc. - validations: - required: true - - type: input - id: library-version - attributes: - label: Library version - description: What version of the library are you using? - placeholder: "x.x.x" - validations: - required: true - - type: textarea - id: react-native-info - attributes: - label: Environment info - description: Run `react-native info` in your terminal and paste the results here. - render: shell - validations: - required: true - - type: textarea - id: steps-to-reproduce - attributes: - label: Steps to reproduce - description: | - You must provide a clear list of steps and code to reproduce the problem. - value: | - 1. … - 2. … - validations: - required: true - - type: input - id: reproducible-example - attributes: - label: Reproducible example repository - description: Please provide a link to a repository on GitHub with a reproducible example. - render: js - validations: - required: true diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml deleted file mode 100644 index eab7c42..0000000 --- a/.github/ISSUE_TEMPLATE/config.yml +++ /dev/null @@ -1,8 +0,0 @@ -blank_issues_enabled: false -contact_links: - - name: Feature Request 💡 - url: https://git.sheetjs.com/asadbek064/react-native-tabeller.git/discussions/new?category=ideas - about: If you have a feature request, please create a new discussion on GitHub. - - name: Discussions on GitHub 💬 - url: https://git.sheetjs.com/asadbek064/react-native-tabeller.git/discussions - about: If this library works as promised but you need help, please ask questions there. diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml deleted file mode 100644 index 066f4f5..0000000 --- a/.github/actions/setup/action.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: Setup -description: Setup Node.js and install dependencies - -runs: - using: composite - steps: - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version-file: .nvmrc - - - name: Restore dependencies - id: yarn-cache - uses: actions/cache/restore@v4 - with: - path: | - **/node_modules - .yarn/install-state.gz - key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}-${{ hashFiles('**/package.json', '!node_modules/**') }} - restore-keys: | - ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }} - ${{ runner.os }}-yarn- - - - name: Install dependencies - if: steps.yarn-cache.outputs.cache-hit != 'true' - run: yarn install --immutable - shell: bash - - - name: Cache dependencies - if: steps.yarn-cache.outputs.cache-hit != 'true' - uses: actions/cache/save@v4 - with: - path: | - **/node_modules - .yarn/install-state.gz - key: ${{ steps.yarn-cache.outputs.cache-primary-key }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index f89b2ef..0000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,64 +0,0 @@ -name: CI -on: - push: - branches: - - main - pull_request: - branches: - - main - merge_group: - types: - - checks_requested - -jobs: - lint: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Setup - uses: ./.github/actions/setup - - - name: Lint files - run: yarn lint - - - name: Typecheck files - run: yarn typecheck - - test: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Setup - uses: ./.github/actions/setup - - - name: Run unit tests - run: yarn test --maxWorkers=2 --coverage - - build-library: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Setup - uses: ./.github/actions/setup - - - name: Build package - run: yarn prepare - - build-web: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Setup - uses: ./.github/actions/setup - - - name: Build example for Web - run: | - yarn example expo export --platform web diff --git a/example/src/App.tsx b/example/src/App.tsx index cf2cf3d..00f181d 100644 --- a/example/src/App.tsx +++ b/example/src/App.tsx @@ -55,7 +55,7 @@ const styles = StyleSheet.create({ alignItems: 'center', alignSelf: 'center', maxWidth: 800, - width: '100%' + width: '100%', }, heading: { fontSize: 24,