Skip to content

Commit

Permalink
Fix ci/cd
Browse files Browse the repository at this point in the history
Signed-off-by: davimarinho <[email protected]>
  • Loading branch information
DaviMarinho committed Nov 6, 2023
1 parent 6b2d27e commit 543f8b5
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 40 deletions.
38 changes: 0 additions & 38 deletions .github/workflows/ci-cd.yml

This file was deleted.

26 changes: 26 additions & 0 deletions .github/workflows/continous-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: CI Pipeline Frontend

on: push

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout ✅
uses: actions/checkout@v3

- name: Setup 🏗
uses: actions/setup-node@v2
with:
node-version: lts/*
cache: 'npm'

- name: Install ⚙️
run: npm install

- name: Build 🛠
run: npm run build

- name: Test 📋
run: npm run test
25 changes: 25 additions & 0 deletions .github/workflows/heroku-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: heroku-deploy
on:
pull_request:
types:
- closed
branches:
- develop

jobs:
deploy-heroku:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
name: heroku deploy
steps:
- uses: actions/checkout@v2
- uses: akhileshns/[email protected]
with:
heroku_api_key: ${{secrets.HEROKU_API_KEY}}
heroku_app_name: "alectrion-2023-1"
heroku_email: ${{secrets.HEROKU_EMAIL}}
usedocker: true
docker_build_args: |
GATEWAY_URL
env:
GATEWAY_URL: ${{ secrets.GATEWAY_URL }}
13 changes: 11 additions & 2 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@ module.exports = function(config) {
config.set({
basePath: '../..',
frameworks: ['jasmine'],
//...
});
browsers: [
'Chrome',
'ChromeHeadlessCI'
],
customLaunchers: {
ChromeHeadlessCI: {
base: 'ChromeHeadless',
flags: ['--no-sandbox']
}
},
})
};

0 comments on commit 543f8b5

Please sign in to comment.