diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 58b004e..d5bbf6d 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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 }} diff --git a/.gitignore b/.gitignore index bff4ddb..f73c45d 100644 --- a/.gitignore +++ b/.gitignore @@ -27,4 +27,9 @@ npm-debug.log* yarn-debug.log* yarn-error.log* -.env \ No newline at end of file +.env +.firebase +firebase.json +firestore.indexes.json +*rules +.firebaserc \ No newline at end of file diff --git a/cypress/fixtures/example.json b/cypress/fixtures/example.json deleted file mode 100644 index da18d93..0000000 --- a/cypress/fixtures/example.json +++ /dev/null @@ -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" -} \ No newline at end of file diff --git a/cypress/integration/router.spec.js b/cypress/integration/router.spec.js deleted file mode 100644 index de84149..0000000 --- a/cypress/integration/router.spec.js +++ /dev/null @@ -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'); - }); -}); diff --git a/tslint.json b/tslint.json new file mode 100644 index 0000000..6af008b --- /dev/null +++ b/tslint.json @@ -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" +} \ No newline at end of file