From 152925db5ca2af3e10e9b9dae4ca3a2218a2d67a Mon Sep 17 00:00:00 2001 From: Hajin Kim <68993476+hajineats@users.noreply.github.com> Date: Tue, 15 Mar 2022 20:01:50 +1300 Subject: [PATCH 1/5] Create frontend_ci.yml --- .github/workflows/frontend_ci.yml | 32 +++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/frontend_ci.yml diff --git a/.github/workflows/frontend_ci.yml b/.github/workflows/frontend_ci.yml new file mode 100644 index 00000000..c5d0af57 --- /dev/null +++ b/.github/workflows/frontend_ci.yml @@ -0,0 +1,32 @@ +# 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://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions + +name: Node.js CI + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [12.x, 14.x, 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 --prefix ./forgettable-frontend install + - run: eslint ./forgettable-frontend --ext .js,.jsx,.ts,.tsx + - run: npm --prefix ./forgettable-frontend test + - run: npm run build --if-present From 89766368efb780052f52f94063dd31332c87e0eb Mon Sep 17 00:00:00 2001 From: Hajin Kim <68993476+hajineats@users.noreply.github.com> Date: Tue, 15 Mar 2022 20:07:52 +1300 Subject: [PATCH 2/5] Update frontend_ci.yml --- .github/workflows/frontend_ci.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/frontend_ci.yml b/.github/workflows/frontend_ci.yml index c5d0af57..29a947ff 100644 --- a/.github/workflows/frontend_ci.yml +++ b/.github/workflows/frontend_ci.yml @@ -1,7 +1,7 @@ # 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://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions -name: Node.js CI +name: frontend_ci on: push: @@ -16,8 +16,7 @@ jobs: strategy: matrix: - node-version: [12.x, 14.x, 16.x] - # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ + node-version: [16.x] steps: - uses: actions/checkout@v2 @@ -27,6 +26,6 @@ jobs: node-version: ${{ matrix.node-version }} cache: 'npm' - run: npm --prefix ./forgettable-frontend install - - run: eslint ./forgettable-frontend --ext .js,.jsx,.ts,.tsx + - run: eslint --ext .js ./forgettable-frontend - run: npm --prefix ./forgettable-frontend test - run: npm run build --if-present From 240876c2c5bbaaf6e58260890ac3e028a46ad02e Mon Sep 17 00:00:00 2001 From: Hajin Kim <68993476+hajineats@users.noreply.github.com> Date: Tue, 15 Mar 2022 20:11:59 +1300 Subject: [PATCH 3/5] Update frontend_ci.yml --- .github/workflows/frontend_ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/frontend_ci.yml b/.github/workflows/frontend_ci.yml index 29a947ff..d0138883 100644 --- a/.github/workflows/frontend_ci.yml +++ b/.github/workflows/frontend_ci.yml @@ -26,6 +26,6 @@ jobs: node-version: ${{ matrix.node-version }} cache: 'npm' - run: npm --prefix ./forgettable-frontend install - - run: eslint --ext .js ./forgettable-frontend + - run: cd ./forgettable-frontend; eslint --ext .js . - run: npm --prefix ./forgettable-frontend test - run: npm run build --if-present From d1087dac233a559f53d81c103b9c64b9e0f73751 Mon Sep 17 00:00:00 2001 From: Hajin Kim <68993476+hajineats@users.noreply.github.com> Date: Tue, 15 Mar 2022 20:28:57 +1300 Subject: [PATCH 4/5] Update frontend_ci.yml --- .github/workflows/frontend_ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/frontend_ci.yml b/.github/workflows/frontend_ci.yml index d0138883..7a231805 100644 --- a/.github/workflows/frontend_ci.yml +++ b/.github/workflows/frontend_ci.yml @@ -26,6 +26,6 @@ jobs: node-version: ${{ matrix.node-version }} cache: 'npm' - run: npm --prefix ./forgettable-frontend install - - run: cd ./forgettable-frontend; eslint --ext .js . + - run: cd ./forgettable-frontend; npx eslint --ext .js,.jsx,.ts,.tsx . - run: npm --prefix ./forgettable-frontend test - run: npm run build --if-present From bcc4dde04c34279c128c824a45490fe3de40af4b Mon Sep 17 00:00:00 2001 From: Hajin Kim <68993476+hajineats@users.noreply.github.com> Date: Mon, 21 Mar 2022 23:57:04 +1300 Subject: [PATCH 5/5] Update frontend_ci.yml --- .github/workflows/frontend_ci.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/frontend_ci.yml b/.github/workflows/frontend_ci.yml index 7a231805..b31c0bbd 100644 --- a/.github/workflows/frontend_ci.yml +++ b/.github/workflows/frontend_ci.yml @@ -27,5 +27,9 @@ jobs: cache: 'npm' - run: npm --prefix ./forgettable-frontend install - run: cd ./forgettable-frontend; npx eslint --ext .js,.jsx,.ts,.tsx . - - run: npm --prefix ./forgettable-frontend test + - run: | + cd ./forgettable-frontend/src + touch firebase-config.js + cd .. + npm run test - run: npm run build --if-present