Skip to content

Commit

Permalink
👷 Add github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
harastaivan committed Oct 24, 2022
1 parent cff508d commit 5ec46ff
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: CI

on:
pull_request:
branches: [master]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.x]

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
# cache: 'yarn'

- run: yarn install
- run: yarn build

- name: audit
run: yarn audit --level high --groups dependencies
38 changes: 38 additions & 0 deletions .github/workflows/deploy-production.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: deploy-production

on:
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.x]

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'

- run: yarn install
- run: yarn build

- name: audit
run: yarn audit --level high --groups dependencies

deploy:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: akhileshns/heroku-deploy@v3.12.12
with:
heroku_api_key: ${{secrets.HEROKU_API_KEY}}
heroku_app_name: harasta-dev
heroku_email: ${{secrets.HEROKU_EMAIL}}

0 comments on commit 5ec46ff

Please sign in to comment.