Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
a6d5adb
Update TestCI.yml
knowledgepot Aug 27, 2023
1f43837
Update TestCI.yml
knowledgepot Aug 27, 2023
fd48d29
Update TestCI.yml
knowledgepot Aug 27, 2023
4e236d4
Update TestCI.yml
knowledgepot Aug 27, 2023
398dc0c
Update TestCI.yml
knowledgepot Aug 27, 2023
2bcce8c
Update TestCI.yml
knowledgepot Aug 27, 2023
abd2737
Update TestCI.yml
knowledgepot Aug 27, 2023
8629503
Update TestCI.yml
knowledgepot Aug 27, 2023
ee42e92
Update TestCI.yml
knowledgepot Aug 27, 2023
da8565b
Update TestCI.yml
knowledgepot Aug 27, 2023
d932ea8
Update TestCI.yml
knowledgepot Aug 27, 2023
902bac7
Update TestCI.yml
knowledgepot Aug 27, 2023
f1b6dc2
Update TestCI.yml
knowledgepot Aug 27, 2023
d852a9e
Update TestCI.yml
knowledgepot Aug 27, 2023
f4350ae
Update TestCI.yml
knowledgepot Aug 27, 2023
f878507
Update TestCI.yml
knowledgepot Aug 29, 2023
888a9af
Chaning travis file into repo--4:11pm
atizkar Aug 29, 2023
75e01af
Merge branch 'CIbranch' of https://github.com/knowledgepot/youtube-st…
atizkar Aug 29, 2023
fdde7fd
Chaning travis file into repo--4:11pm
atizkar Aug 29, 2023
8e52217
Update .travis.yml
knowledgepot Sep 2, 2023
5c6758b
Update .travis.yml
knowledgepot Sep 2, 2023
fae6d28
Update Dockerfile
knowledgepot Sep 2, 2023
632408f
Update Dockerfile
knowledgepot Sep 2, 2023
7254288
Update Dockerfile
knowledgepot Sep 2, 2023
7255315
Update .travis.yml
knowledgepot Sep 4, 2023
b8f1d39
Update TestCI.yml
knowledgepot Sep 4, 2023
977e524
Update .travis.yml
knowledgepot Sep 4, 2023
25f195f
Update .travis.yml
knowledgepot Sep 4, 2023
db6122b
Update .travis.yml
knowledgepot Sep 4, 2023
55f6963
Update Dockerfile
knowledgepot Sep 4, 2023
9943b2f
Update Dockerfile
knowledgepot Sep 4, 2023
9dfa574
Update .travis.yml
knowledgepot Sep 4, 2023
8b11cc0
Update .travis.yml
knowledgepot Sep 4, 2023
8b7f5c8
Update .travis.yml
knowledgepot Sep 4, 2023
638139a
Update .travis.yml
knowledgepot Sep 4, 2023
e6bdd9b
Update .travis.yml
knowledgepot Sep 4, 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
32 changes: 25 additions & 7 deletions .github/workflows/TestCI.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
# 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: youtube-stats Actions CI

on:
push:
branches: [ "master" ]
branches: [ "CIbranch" ]
pull_request:
branches: [ "master" ]
branches: [ "CIbranch" ]

jobs:
build:
Expand All @@ -16,9 +13,30 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
- name: Use Node.js 16
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
node-version: 16
cache: 'npm'
- name: Install react-scripts
run: npm install react-scripts
- name: Add node_modules to PATH
run: echo "export PATH=$PATH:$HOME/node_modules" >> ~/.bashrc
- run: npm run build --if-present

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
push: true
tags: knowlegepot/examplereactapp:latest




10 changes: 5 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
language: node_js
node_js:
- 12
services:
- docker

before_install:
- docker build -t kowledgepot/reactapp -f Dockerfile.dev .

script:
- docker run kowledgepot/reactapp npm run test -- --coverage
- docker build -t reactapp -f Dockerfile .


script:
- docker run reactapp npm run test -- --coverage
11 changes: 3 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
FROM node:latest

FROM node:16
RUN mkdir -p /app/src

WORKDIR /app/src

COPY package.json .

RUN npm cache clean --force
RUN npm install

COPY . .

EXPOSE 3000

CMD ["npm", "start"]