Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
axelpezzo committed May 26, 2022
1 parent 0af16ff commit 40c3f4c
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 5 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: CI

on: [push, pull_request]
on:
pull_request:
push:
branches-ignore:
- 'develop'

jobs:
build:
Expand Down
45 changes: 41 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,50 @@
name: Deploy

on:
workflow_run:
workflows: ["CI"]
types:
- completed
push:
branches:
- develop

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Installing...
run: npm i
- name: Building...
env:
CI: false
run: npm run build

unit-tests:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Installing...
run: npm i
- name: Testing...
run: npm test

e2e:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
# https://github.com/cypress-io/github-action
- name: Cypress run
uses: cypress-io/github-action@v2
with:
record: false
start: npm start
spec: cypress/integration/**/*
env: host=localhost,port=3000
wait-on: "http://localhost:3000"

deploy:
needs: e2e
runs-on: ubuntu-latest

steps:
Expand Down

0 comments on commit 40c3f4c

Please sign in to comment.