Merge branch 'firebase'

This commit is contained in:
Ruidy Nemausat 2020-05-16 16:07:03 +02:00
commit 7c27de45b1
5 changed files with 82 additions and 64 deletions

View file

@ -25,3 +25,16 @@ jobs:
with:
start: yarn start
wait-on: 'http://localhost:3000'
release:
if: ${{ github.ref == 'master' }}
needs: test
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build
run: yarn build
- name: Install Firebase CLI tools
run: yarn global add firebase-tools
- name: Deploy
run: firebase deploy --token ${{ secrets.FIREBASE_TOKEN }}

7
.gitignore vendored
View file

@ -27,4 +27,9 @@ npm-debug.log*
yarn-debug.log*
yarn-error.log*
.env
.env
.firebase
firebase.json
firestore.indexes.json
*rules
.firebaserc

View file

@ -1,5 +0,0 @@
{
"name": "Using fixtures to represent data",
"email": "hello@cypress.io",
"body": "Fixtures are a great way to mock data for responses to routes"
}

View file

@ -1,58 +0,0 @@
import Routes from '../../src/constants/Routes';
describe('App Router', () => {
it('contains Landing page', () => {
cy.visit(Routes.LANDING);
cy.get('section');
});
it('contains SignUp page', () => {
cy.visit(Routes.SIGN_UP);
cy.get('section');
});
it('contains SignIn page', () => {
cy.visit(Routes.SIGN_IN);
cy.get('section');
});
it('contains Developers page', () => {
cy.visit(Routes.DEVELOPERS);
cy.get('section');
});
it('contains Profile page', () => {
cy.visit(Routes.PROFILE);
cy.get('section');
});
it('contains Edit Profile page', () => {
cy.visit(Routes.EDIT_PROFILE);
cy.get('section');
});
it('contains Add Experience page', () => {
cy.visit(Routes.ADD_EXPERIENCE);
cy.get('section');
});
it('contains Add Education page', () => {
cy.visit(Routes.ADD_EDUCATION);
cy.get('section');
});
it('contains Dashboard page', () => {
cy.visit(Routes.DASHBOARD);
cy.get('section');
});
it('contains Post page', () => {
cy.visit(Routes.POST);
cy.get('section');
});
it('contains Posts page', () => {
cy.visit(Routes.POSTS);
cy.get('section');
});
});

63
tslint.json Normal file
View file

@ -0,0 +1,63 @@
{
"rules": {
"adjacent-overload-signatures": true,
"ban-comma-operator": true,
"no-namespace": true,
"no-parameter-reassignment": true,
"no-reference": true,
"no-unnecessary-type-assertion": true,
"label-position": true,
"no-conditional-assignment": true,
"no-construct": true,
"no-duplicate-super": true,
"no-duplicate-switch-case": true,
"no-duplicate-variable": [
true,
"check-parameters"
],
"no-shadowed-variable": true,
"no-empty": [
true,
"allow-empty-catch"
],
"no-floating-promises": true,
"no-implicit-dependencies": true,
"no-invalid-this": true,
"no-string-throw": true,
"no-unsafe-finally": true,
"no-void-expression": [
true,
"ignore-arrow-function-shorthand"
],
"no-duplicate-imports": true,
// Warn when an empty interface is defined. These are generally not useful.
"no-empty-interface": {
"severity": "warning"
},
"no-import-side-effect": {
"severity": "warning"
},
"no-var-keyword": {
"severity": "warning"
},
"triple-equals": {
"severity": "warning"
},
"deprecation": {
"severity": "warning"
},
"prefer-for-of": {
"severity": "warning"
},
"unified-signatures": {
"severity": "warning"
},
"prefer-const": {
"severity": "warning"
},
"trailing-comma": {
"severity": "warning"
}
},
"defaultSeverity": "error"
}