refactor: removed github actions ci/cd runner
This commit is contained in:
parent
afa700e354
commit
6bc0ecd739
68
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
68
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
@ -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
|
8
.github/ISSUE_TEMPLATE/config.yml
vendored
8
.github/ISSUE_TEMPLATE/config.yml
vendored
@ -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.
|
36
.github/actions/setup/action.yml
vendored
36
.github/actions/setup/action.yml
vendored
@ -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 }}
|
64
.github/workflows/ci.yml
vendored
64
.github/workflows/ci.yml
vendored
@ -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
|
@ -55,7 +55,7 @@ const styles = StyleSheet.create({
|
||||
alignItems: 'center',
|
||||
alignSelf: 'center',
|
||||
maxWidth: 800,
|
||||
width: '100%'
|
||||
width: '100%',
|
||||
},
|
||||
heading: {
|
||||
fontSize: 24,
|
||||
|
Loading…
Reference in New Issue
Block a user