Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update-project #68

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"presets": [
"env",
"react"
"@babel/preset-env",
"@babel/preset-react"
],
"plugins": [
"transform-class-properties",
"transform-object-rest-spread"
"@babel/transform-runtime",
"@babel/plugin-proposal-class-properties",
"@babel/plugin-proposal-object-rest-spread"
]
}
38 changes: 38 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Deploy
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
env:
FIREBASE_API_KEY: ${{secrets.FIREBASE_API_KEY}}
FIREBASE_AUTH_DOMAIN: ${{secrets.FIREBASE_AUTH_DOMAIN}}
FIREBASE_DATABASE_URL: ${{secrets.FIREBASE_DATABASE_URL}}
FIREBASE_PROJECT_ID: ${{secrets.FIREBASE_PROJECT_ID}}
FIREBASE_STORAGE_BUCKET: ${{secrets.FIREBASE_STORAGE_BUCKET}}
FIREBASE_MESSAGING_SENDER_ID: ${{secrets.FIREBASE_MESSAGING_SENDER_ID}}
steps:
- uses: actions/checkout@v2
with:
# Disabling shallow clone is recommended for improving relevancy of reporting
fetch-depth: 0
- name: Setup node
uses: actions/setup-node@v2
with:
node-version-file: '.nvmrc'
cache: 'npm'
- run: npm ci
- run: npm run build:prod
- run: npm run test:coverage
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- uses: akhileshns/[email protected] # This is the action
with:
heroku_api_key: ${{secrets.HEROKU_API_KEY}}
heroku_app_name: moser-ss-expensify-app
heroku_email: [email protected]
36 changes: 36 additions & 0 deletions .github/workflows/pr-ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CI-CD
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
CI-CD:
runs-on: ubuntu-latest
env:
FIREBASE_API_KEY: ${{secrets.FIREBASE_API_KEY}}
FIREBASE_AUTH_DOMAIN: ${{secrets.FIREBASE_AUTH_DOMAIN}}
FIREBASE_DATABASE_URL: ${{secrets.FIREBASE_DATABASE_URL}}
FIREBASE_PROJECT_ID: ${{secrets.FIREBASE_PROJECT_ID}}
FIREBASE_STORAGE_BUCKET: ${{secrets.FIREBASE_STORAGE_BUCKET}}
FIREBASE_MESSAGING_SENDER_ID: ${{secrets.FIREBASE_MESSAGING_SENDER_ID}}
steps:
- uses: actions/checkout@v2
with:
# Disabling shallow clone is recommended for improving relevancy of reporting
fetch-depth: 0
- name: Setup node
uses: actions/setup-node@v2
with:
node-version-file: '.nvmrc'
cache: 'npm'
- run: npm ci
- run: npm run build:prod
- run: npm run test:coverage
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
19 changes: 0 additions & 19 deletions .github/workflows/snyk-merge.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
10
16
634 changes: 0 additions & 634 deletions .snyk

This file was deleted.

23 changes: 0 additions & 23 deletions .travis.yml

This file was deleted.

1 change: 0 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@
"eslint.enable": true,
"jest.pathToConfig": "package.json",
"jest.showCoverageOnLoad": true,
"travis.pro": true
}
6 changes: 5 additions & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,8 @@

### Snyk

[![Known Vulnerabilities](https://snyk.io//test/github/Moser-ss/react-course-expensify-app/badge.svg?targetFile=package.json)](https://snyk.io//test/github/Moser-ss/react-course-expensify-app?targetFile=package.json)
[![Known Vulnerabilities](https://snyk.io//test/github/Moser-ss/react-course-expensify-app/badge.svg?targetFile=package.json)](https://snyk.io//test/github/Moser-ss/react-course-expensify-app?targetFile=package.json)


TODO remove @babel/polyfill
https://stackoverflow.com/questions/57101261/webpack-package-babel-polyfill-has-been-deprecated-how-to-use-an-alternati
Loading