Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
ab0fd4e
Create node.js.yml
francismungai Apr 10, 2023
f027581
Update node.js.yml
francismungai Apr 10, 2023
653a011
Update node.js.yml
francismungai Apr 10, 2023
5b8293d
Update node.js.yml
francismungai Apr 10, 2023
a1a006b
Update node.js.yml
francismungai Apr 10, 2023
d4785a5
Update node.js.yml
francismungai Apr 10, 2023
bd970db
Update node.js.yml
francismungai Apr 10, 2023
4f894ff
Update node.js.yml
francismungai Apr 10, 2023
f000de4
Update node.js.yml
francismungai Apr 10, 2023
6468fee
Update node.js.yml
francismungai Apr 10, 2023
33e908e
Update node.js.yml
francismungai Apr 10, 2023
0170cad
Update node.js.yml
francismungai Apr 11, 2023
47b50ca
Update package.json
francismungai Apr 11, 2023
e64ff57
Update node.js.yml
francismungai Apr 11, 2023
9611fde
Update package.json
francismungai Apr 11, 2023
b01d304
gh pages
francismungai Apr 11, 2023
a10a651
Merge branch 'francismungai-patch-2' of https://github.com/djsurt/Roc…
francismungai Apr 11, 2023
0d9fe3b
Update node.js.yml
francismungai Apr 11, 2023
d3fa1d8
Update node.js.yml
francismungai Apr 11, 2023
16dfde6
Update package-lock.json
francismungai Apr 11, 2023
017b0c4
Update node.js.yml
francismungai Apr 11, 2023
4a1a207
Checking deployment
djsurt Apr 12, 2023
9208596
Update node.js.yml
francismungai Apr 16, 2023
234a7b5
Update index.js
francismungai Apr 16, 2023
144c9bf
Update node.js.yml
francismungai Apr 16, 2023
2301534
Update node.js.yml
francismungai Apr 16, 2023
5942fff
Update node.js.yml
francismungai Apr 16, 2023
c2121e3
Update node.js.yml
francismungai Apr 16, 2023
cfdb25c
Update node.js.yml
francismungai Apr 16, 2023
11ed1fb
Update node.js.yml
francismungai Apr 16, 2023
b1cc1d3
Update node.js.yml
francismungai Apr 18, 2023
327b1b9
Update node.js.yml
francismungai Apr 18, 2023
9cb9143
Update node.js.yml
francismungai Apr 18, 2023
49fec13
Update node.js.yml
francismungai Apr 18, 2023
f84f502
Update node.js.yml
francismungai Apr 18, 2023
472ddf3
Update node.js.yml
francismungai Apr 18, 2023
89f9a1f
Update node.js.yml
francismungai Apr 18, 2023
376b62b
Update node.js.yml
francismungai Apr 18, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
79 changes: 79 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: Node.js CI

on:
push:
branches: [ "ghpages" ]
pull_request:
branches: [ "ghpages" ]

jobs:
server:
runs-on: ubuntu-latest
env:
CI: false
PORT: "4005"
CONNECTION_URL: 'mongodb+srv://djsurt:djsurt123@cluster0.i7gyzkp.mongodb.net/?retryWrites=true&w=majority'

defaults:
run:
working-directory: ./server

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

steps:
- uses: actions/checkout@v3
- name: Use Start Server ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: ./server/package-lock.json

- run: npm ci --legacy-peer-deps
- run: npm run build --if-present
- run: echo 'The PORT is:${{ env.PORT }}'
- run: echo 'The CONNECTION_URL is:${{ env.CONNECTION_URL }}'

build:

needs:
- server
runs-on: ubuntu-latest
env:
CI: ""
PORT: "4005"
CONNECTION_URL: 'mongodb+srv://djsurt:djsurt123@cluster0.i7gyzkp.mongodb.net/?retryWrites=true&w=majority'
defaults:
run:
working-directory: ./client

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

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: ./client/package-lock.json

- run: npm ci --legacy-peer-deps
- run: npm run build --if-present

- name: Deploy with gh-pages
run: |
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
npm run deploy -- -u "github-actions-bot <support+actions@github.com>"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Loading