From 100129a0dc15af88c89d4396ef74f999a422a231 Mon Sep 17 00:00:00 2001 From: argshook Date: Thu, 16 Jun 2022 22:36:07 +0300 Subject: [PATCH 1/7] add github action --- .github/workflows/web-console.yml | 33 +++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/web-console.yml diff --git a/.github/workflows/web-console.yml b/.github/workflows/web-console.yml new file mode 100644 index 000000000..d50155b26 --- /dev/null +++ b/.github/workflows/web-console.yml @@ -0,0 +1,33 @@ +name: web-console + +on: + push: + paths: + - packages/web-console/** + branches-ignore: + - main + - refs/tags/* + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + + - name: Install dependencies + run: yarn install --immutable --immutable-cache --check-cache + + + - uses: actions/cache@v1 + with: + path: ~/.cache/yarn + key: ${{ runner.os }}-build-node-modules-${{ hashFiles('**/yarn.lock') }} + restore-keys: | + ${{ runner.os }}-build-node-modules + ${{ runner.os }}-build- + ${{ runner.os }}- + + - name: build + run: yarn workspace @questdb/web-console run build From 76ca60d82bb082a2cc4a0899e33088378d75e05c Mon Sep 17 00:00:00 2001 From: argshook Date: Thu, 16 Jun 2022 22:37:58 +0300 Subject: [PATCH 2/7] temp comment of paths --- .github/workflows/web-console.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/web-console.yml b/.github/workflows/web-console.yml index d50155b26..379cd681b 100644 --- a/.github/workflows/web-console.yml +++ b/.github/workflows/web-console.yml @@ -2,8 +2,9 @@ name: web-console on: push: - paths: - - packages/web-console/** + # temporarily commenting for initial test + # paths: + # - packages/web-console/** branches-ignore: - main - refs/tags/* From 903a274121657e7ac544cd8f39c8f467c8dda0c8 Mon Sep 17 00:00:00 2001 From: argshook Date: Thu, 16 Jun 2022 22:44:10 +0300 Subject: [PATCH 3/7] intetional error to test github action --- packages/web-console/src/scenes/Footer/BuildVersion/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/web-console/src/scenes/Footer/BuildVersion/index.tsx b/packages/web-console/src/scenes/Footer/BuildVersion/index.tsx index 54ea64d5e..36870a4ca 100644 --- a/packages/web-console/src/scenes/Footer/BuildVersion/index.tsx +++ b/packages/web-console/src/scenes/Footer/BuildVersion/index.tsx @@ -22,7 +22,7 @@ * ******************************************************************************/ -import { QuestContext } from "../../../providers" +import { QuestContext } from "providers" import React, { useContext, useEffect, useState } from "react" import styled from "styled-components" import * as QuestDB from "../../../utils/questdb" From 5cb2f76043ad6d04e6e433241e3942834c5aa6da Mon Sep 17 00:00:00 2001 From: argshook Date: Thu, 16 Jun 2022 22:50:44 +0300 Subject: [PATCH 4/7] no need for `actions/cache` as it's integrated in `actions/setup-node` --- .github/workflows/web-console.yml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/web-console.yml b/.github/workflows/web-console.yml index 379cd681b..f89e8087b 100644 --- a/.github/workflows/web-console.yml +++ b/.github/workflows/web-console.yml @@ -16,19 +16,13 @@ jobs: steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 + with: + node-version: '16.13.1' + cache: 'yarn' - name: Install dependencies run: yarn install --immutable --immutable-cache --check-cache - - uses: actions/cache@v1 - with: - path: ~/.cache/yarn - key: ${{ runner.os }}-build-node-modules-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - ${{ runner.os }}-build-node-modules - ${{ runner.os }}-build- - ${{ runner.os }}- - - name: build run: yarn workspace @questdb/web-console run build From e2a74d3db08d9b13cd4e17755fd15a9c254f42fd Mon Sep 17 00:00:00 2001 From: argshook Date: Thu, 16 Jun 2022 22:56:51 +0300 Subject: [PATCH 5/7] do not double check cache --- .github/workflows/web-console.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/web-console.yml b/.github/workflows/web-console.yml index f89e8087b..abbfb492d 100644 --- a/.github/workflows/web-console.yml +++ b/.github/workflows/web-console.yml @@ -21,7 +21,7 @@ jobs: cache: 'yarn' - name: Install dependencies - run: yarn install --immutable --immutable-cache --check-cache + run: yarn install --immutable --immutable-cache - name: build From 10179f94cd95d2f68e277d30d0ec4a8822d169f9 Mon Sep 17 00:00:00 2001 From: argshook Date: Thu, 16 Jun 2022 22:58:25 +0300 Subject: [PATCH 6/7] Revert "intetional error to test github action" This reverts commit 903a274121657e7ac544cd8f39c8f467c8dda0c8. --- packages/web-console/src/scenes/Footer/BuildVersion/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/web-console/src/scenes/Footer/BuildVersion/index.tsx b/packages/web-console/src/scenes/Footer/BuildVersion/index.tsx index 36870a4ca..54ea64d5e 100644 --- a/packages/web-console/src/scenes/Footer/BuildVersion/index.tsx +++ b/packages/web-console/src/scenes/Footer/BuildVersion/index.tsx @@ -22,7 +22,7 @@ * ******************************************************************************/ -import { QuestContext } from "providers" +import { QuestContext } from "../../../providers" import React, { useContext, useEffect, useState } from "react" import styled from "styled-components" import * as QuestDB from "../../../utils/questdb" From 00b4bc3842d2476b747eb297a3c1a50e869526e3 Mon Sep 17 00:00:00 2001 From: argshook Date: Thu, 16 Jun 2022 23:02:05 +0300 Subject: [PATCH 7/7] run workflow only for changes in `packages/web-console/**` --- .github/workflows/web-console.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/web-console.yml b/.github/workflows/web-console.yml index abbfb492d..f3fdddb0b 100644 --- a/.github/workflows/web-console.yml +++ b/.github/workflows/web-console.yml @@ -2,9 +2,8 @@ name: web-console on: push: - # temporarily commenting for initial test - # paths: - # - packages/web-console/** + paths: + - packages/web-console/** branches-ignore: - main - refs/tags/* @@ -23,6 +22,5 @@ jobs: - name: Install dependencies run: yarn install --immutable --immutable-cache - - name: build run: yarn workspace @questdb/web-console run build