Skip to content

Commit

Permalink
Create a CI pipeline with GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielrg14 committed May 20, 2024
1 parent efaac39 commit 90a2fed
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 2 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: CI 🔄

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
unit-tests:
runs-on: ubuntu-latest

steps:
- name: Checkout repository 📦
uses: actions/checkout@v4

- name: Set up Node.js ⚙️
uses: actions/setup-node@v4
with:
node-version: "20"

- name: Install dependencies 🛠️
run: npm ci

- name: Run unit tests 🧪
run: npm test
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@
- [Jest](https://jestjs.io/)
- [React Native Testing Library](https://callstack.github.io/react-native-testing-library/)
- [Mock Service Worker](https://mswjs.io/)
- [GitHub Actions](https://github.com/features/actions/)
23 changes: 21 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,27 @@
{
"name": "pokedex-app",
"version": "1.0.0",
"private": true,
"main": "index.ts",
"description": "Pokédex App that consumes the PokéAPI to display information on all existing Pokémon.",
"author": "Gabriel Rapucci Gonzalez <gabrielrapuccigonzalez14@hotmail.com> (https://gabrielrapucci.com.br)",
"homepage": "https://github.com/gabrielrg14/pokedex-app#readme",
"repository": {
"type": "git",
"url": "https://github.com/gabrielrg14/pokedex-app"
},
"bugs": {
"url": "https://github.com/gabrielrg14/pokedex-app/issues"
},
"keywords": [
"react-native",
"pokédex",
"pokédex-app",
"pokéAPI",
"front-end",
"portfolio"
],
"license": "MIT",
"scripts": {
"start": "expo start",
"test": "jest",
Expand Down Expand Up @@ -55,6 +75,5 @@
"prettier": "^3.1.0",
"ts-node": "^10.9.2",
"typescript": "^5.3.2"
},
"private": true
}
}

0 comments on commit 90a2fed

Please sign in to comment.