Skip to content

Commit

Permalink
chore: circle CI builds (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
lirantal committed Feb 16, 2020
1 parent a610abf commit 8c5618e
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 14 deletions.
77 changes: 77 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
version: 2.1
jobs:
build:
working_directory: ~/project
docker:
- image: circleci/node:12
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "package-lock.json" }}
- run:
name: install
command: npm install --ignore-engines
- save_cache:
key: dependency-cache-{{ checksum "package-lock.json" }}
paths:
- ./node_modules
- persist_to_workspace:
root: ~/project
paths:
- ./node_modules

lint:
working_directory: ~/project
docker:
- image: circleci/node:12
steps:
- checkout
- attach_workspace:
at: ./
- run:
name: lint
command: npm run lint

# no tests :(((
# test:
# working_directory: ~/project
# docker:
# - image: circleci/node:12
# steps:
# - checkout
# - attach_workspace:
# at: ./
# - run:
# name: test
# command: npm run test
# - run:
# name: coverage
# command: npx codecov

release:
working_directory: ~/project
docker:
- image: circleci/node:12
steps:
- checkout
- attach_workspace:
at: ./
- run:
name: release
command: npm run semantic-release

workflows:
version: 2.1
project:
jobs:
- build
- lint:
requires:
- build
- release:
filters:
branches:
only:
- master
requires:
- lint
12 changes: 0 additions & 12 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<a href="https://www.npmjs.org/package/cypress-social-logins"><img src="https://badgen.net/npm/v/cypress-social-logins" alt="npm version"/></a>
<a href="https://www.npmjs.org/package/cypress-social-logins"><img src="https://badgen.net/npm/license/cypress-social-logins" alt="license"/></a>
<a href="https://www.npmjs.org/package/cypress-social-logins"><img src="https://badgen.net/npm/dt/cypress-social-logins" alt="downloads"/></a>
<a href="https://travis-ci.org/lirantal/cypress-social-logins"><img src="https://badgen.net/travis/lirantal/cypress-social-logins" alt="build"/></a>
<a href="https://circleci.com/gh/lirantal/cypress-social-logins"><img src="https://circleci.com/gh/lirantal/cypress-social-logins.svg?style=svg" alt="build"/></a>
<a href="https://snyk.io/test/github/lirantal/cypress-social-logins"><img src="https://snyk.io/test/github/lirantal/cypress-social-logins/badge.svg" alt="Known Vulnerabilities"/></a>
<a href="https://github.com/nodejs/security-wg/blob/master/processes/responsible_disclosure_template.md"><img src="https://img.shields.io/badge/Security-Responsible%20Disclosure-yellow.svg" alt="Security Responsible Disclosure" /></a>
</p>
Expand Down Expand Up @@ -118,7 +118,7 @@ describe('Login', () => {
const username = Cypress.env('googleSocialLoginUsername')
const password = Cypress.env('googleSocialLoginPassword')
const loginUrl = Cypress.env('loginUrl')
const cookieName = Cypress.env('cookieName')
const cookieName = Cypress.env('cookieName')
const socialLoginOptions = {
username,
password,
Expand Down

0 comments on commit 8c5618e

Please sign in to comment.