diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml new file mode 100644 index 0000000..49a41b2 --- /dev/null +++ b/.github/workflows/node.js.yml @@ -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/heroku-deploy@v3.12.12 + with: + heroku_api_key: ${{ec86b22f-c068-4d5c-b1ba-feda0410744e}} + heroku_app_name: "dog-grooming-api" + heroku_email: "arun.gan1234@gmail.com" diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..0c7066e --- /dev/null +++ b/.vscode/settings.json @@ -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 + } +} diff --git a/aws-exports.js b/aws-exports.js new file mode 100644 index 0000000..6957222 --- /dev/null +++ b/aws-exports.js @@ -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; diff --git a/backend.js b/backend.js index 1592cd6..3c8a705 100644 --- a/backend.js +++ b/backend.js @@ -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");