Skip to content

Commit

Permalink
Add Semaphore config
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardofaria committed Jul 28, 2020
1 parent 702b600 commit 12c20cb
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .semaphore/semaphore.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
version: v1.0
name: Cypress example
agent:
machine:
type: e1-standard-2
os_image: ubuntu1804
blocks:
- name: Build Dependencies
dependencies: []
task:
jobs:
- name: NPM
commands:
- sem-version node
- checkout
- cache restore node-modules-$(checksum package-lock.json),node-modules-$SEMAPHORE_GIT_BRANCH,node-modules
- npm ci
- cache store node-modules-$(checksum package-lock.json) node_modules
- name: Tests
dependencies: ['Build Dependencies']
task:
prologue:
commands:
- sem-version node
- checkout
- cache restore node-modules-$SEMAPHORE_GIT_BRANCH-$(checksum package-lock.json),node-modules-$SEMAPHORE_GIT_BRANCH,node-modules
jobs:
- name: Cypress
commands:
- npm run test:ci

0 comments on commit 12c20cb

Please sign in to comment.