KuzniaCo / chemistry-app

4 stars 3 forks source link

[Reaserch] GitHub CI/CD - Expo/react-native #6

Closed bartlomiejmont closed 2 years ago

bartlomiejmont commented 2 years ago

Adding CI/CD to our project will boost team's productivity. You will need to find out to if there is an easy way to create continues integration pipeline using github actions.

hubcio2115 commented 2 years ago

@KuzniaCo/chemistry-app-team We can introduce testing with React Native Testing Library and make actions that will check if it runs all the test. It will require from us that we will learn how to make tests and actually write them. But some of the pros are:

Also since we are using Typescript at this moment we can get the action that checks if our app builds with no errors. We could do this with this.

Introduction of Eslint would be also nice.

bartlomiejmont commented 2 years ago

@hubcio2115 Also we should check if code meets our lint/prettier rules.

React Native Testing Library sounds fine but the question is also with integration with github actions. Can you find out if it is worth our effort ?

hubcio2115 commented 2 years ago

In case of checking the rules, yeah that'd be nice.

In case of this actions, I found an article about testing React apps with Jest. There is a part of said article talking about GitHub Actions and how to set an action for running the tests. It does not seem complicated.