Skip to content

Commit

Permalink
Testing CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Arun-Ganesh07 committed May 19, 2022
1 parent 680e278 commit 08b7568
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 1 deletion.
33 changes: 33 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Node.js CI

on:
push:
branches: [TASK-cloudDB, ci-with-testing]
pull_request:
branches: [TASK-cloudDB, ci-with-testing]

jobs:
build:
runs-on: ${{ matrix.os }} #ubuntu-latest

strategy:
matrix:
os: [ubuntu-latest] # macos-latest, windows-latest
node-version: [16.x]
#See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- run: npm ci
- run: npm run build --if-present
- run: npm test
- uses: akhileshns/[email protected]
with:
heroku_api_key: ${{ec86b22f-c068-4d5c-b1ba-feda0410744e}}
heroku_app_name: "dog-grooming-api"
heroku_email: "[email protected]"
11 changes: 11 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"files.exclude": {
"amplify/.config": true,
"amplify/**/*-parameters.json": true,
"amplify/**/amplify.state": true,
"amplify/**/transform.conf.json": true,
"amplify/#current-cloud-backend": true,
"amplify/backend/amplify-meta.json": true,
"amplify/backend/awscloudformation": true
}
}
8 changes: 8 additions & 0 deletions aws-exports.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/* eslint-disable */
// WARNING: DO NOT EDIT. This file is automatically generated by AWS Amplify. It will be overwritten.

const awsmobile = {
aws_project_region: "us-west-2",
};

export default awsmobile;
2 changes: 1 addition & 1 deletion backend.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const server = express();
const port = 5000;
server.use(cors());
server.use(express.json());

//GH actions test
//Get requests-------------------------------------------------------------------------------------------------------
server.get("/", (req, res) => {
res.redirect("/appointments");
Expand Down

0 comments on commit 08b7568

Please sign in to comment.