Skip to content

Commit

Permalink
chore: upgrade dependencies
Browse files Browse the repository at this point in the history
- upgrade dependencies
- add lint workflow
- add .nvmrc
  • Loading branch information
maggialejandro committed Oct 26, 2022
1 parent d539b1b commit 6f66498
Show file tree
Hide file tree
Showing 12 changed files with 69,897 additions and 21,415 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
on: [push, pull_request]

permissions:
contents: read
pull-requests: read

jobs:
run-linters:
name: Run linters
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Get npm cache directory
id: npm-cache-directory
run: |
echo "::set-output name=dir::$(npm config get cache)"
- uses: actions/cache@v3
id: npm-cache
with:
path: ${{ steps.npm-cache-directory.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}

- uses: actions/cache@v3
id: eslintcache-cache
with:
path: .eslintcache
key: ${{ runner.os }}-eslintcache

- name: Setup node
uses: actions/setup-node@v2
with:
node-version-file: '.nvmrc'

- name: Install Node.js dependencies
run: npm ci --no-audit --prefer-offline

- name: Eslint
run: npm run lint

- name: TypeScript
run: npm run typescript

- name: Jest
run: npm run test
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,8 @@ coverage/
cache/jest/

# generated by bob
lib/
lib/

# TypeScript
#
tsconfig.tsbuildinfo
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lts/gallium
3 changes: 0 additions & 3 deletions .travis.yml

This file was deleted.

5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# React Native Month 📆

[![BuildStatus](https://img.shields.io/travis/maggialejandro/react-native-month/master.svg)](https://travis-ci.org/maggialejandro/react-native-month)
[![NPM version](https://img.shields.io/npm/v/react-native-month.svg)](https://www.npmjs.com/package/react-native-month) [![npm](https://img.shields.io/npm/dw/react-native-month.svg)](https://github.com/maggialejandro/react-native-month) [![CodeFactor](https://www.codefactor.io/repository/github/maggialejandro/react-native-month/badge)](https://www.codefactor.io/repository/github/maggialejandro/react-native-month) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/832690f286a5451cacdae664d63be3b9)](https://www.codacy.com/app/maggialejandro/react-native-month?utm_source=github.com&utm_medium=referral&utm_content=maggialejandro/react-native-month&utm_campaign=Badge_Grade)
![BuildStatus](https://github.com/maggialejandro/react-native-month/actions/workflows/lint.yml/badge.svg) [![NPM version](https://img.shields.io/npm/v/react-native-month.svg)](https://www.npmjs.com/package/react-native-month) [![npm](https://img.shields.io/npm/dm/react-native-month.svg)](https://github.com/maggialejandro/react-native-month) [![CodeFactor](https://www.codefactor.io/repository/github/maggialejandro/react-native-month/badge)](https://www.codefactor.io/repository/github/maggialejandro/react-native-month) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/832690f286a5451cacdae664d63be3b9)](https://www.codacy.com/app/maggialejandro/react-native-month?utm_source=github.com&utm_medium=referral&utm_content=maggialejandro/react-native-month&utm_campaign=Badge_Grade)

![Screenshot](https://github.com/maggialejandro/react-native-month/blob/master/screenshot.png?raw=true)

## Installation

Expand Down
Loading

0 comments on commit 6f66498

Please sign in to comment.