-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Versioning & branching strategy. Fixes #48
- Loading branch information
Showing
3 changed files
with
15 additions
and
27 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,9 +3,9 @@ name: Deployment pipeline | |
on: | ||
push: | ||
branches: | ||
- main | ||
- [main, dev] | ||
pull_request: | ||
branches: [main] | ||
branches: [main, dev] | ||
types: [opened, synchronize] | ||
|
||
jobs: | ||
|
@@ -18,12 +18,17 @@ jobs: | |
node-version: "14.x" | ||
- name: Install dependencies | ||
run: npm run install-app | ||
# - name: lint checking | ||
# run: npm run lint | ||
- name: lint checking | ||
run: npm run lint | ||
- name: build | ||
run: npm run build-app | ||
# - name: test | ||
# run: npm run test-server | ||
- name: test | ||
run: npm run test-server | ||
env: | ||
DB_NAME: ${{ secrets.DB_NAME }} | ||
DB_USERNAME: ${{ secrets.DB_USERNAME }} | ||
DB_PASSWORD: ${{ secrets.DB_PASSWORD }} | ||
DB_HOSTNAME: ${{ secrets.DB_HOSTNAME }} | ||
# ****End to end Testing***** # | ||
# - name: e2e tests | ||
# uses: cypress-io/github-action@v2 | ||
|
@@ -32,16 +37,16 @@ jobs: | |
# start: npm run start-prod | ||
# wait-on: http://localhost:5000 | ||
- name: Deploy | ||
if: ${{ github.event_name == 'push' }} | ||
if: ${{ github.base_ref == 'main' }} | ||
uses: akhileshns/[email protected] # This is the action | ||
with: | ||
heroku_api_key: ${{secrets.HEROKU_API_KEY}} | ||
heroku_app_name: "law-firm-management-sys" #Must be unique in Heroku | ||
heroku_app_name: "law-firm-management-sys" # Must be unique in Heroku | ||
heroku_email: "[email protected]" | ||
# healthcheck: "law-firm-management-sys.herokuapp.com/version" | ||
# checkString: "1.1.0" | ||
- name: Bump version and push tag | ||
if: ${{ github.event_name == 'push' }} | ||
if: ${{ github.base_ref == 'main' }} | ||
uses: anothrNick/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters