From feb21f18d22201b2e8a381155095d57308cd7ec2 Mon Sep 17 00:00:00 2001 From: Rafal Czajkowski Date: Fri, 17 Nov 2023 15:00:35 +0100 Subject: [PATCH 1/3] Add basic GH workflow for website workspace This is an initial implementation of the CI process to check formatting in `website` workspace. Co-authored-by: Rafal Czajkowski --- .github/workflows/website.yaml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/website.yaml diff --git a/.github/workflows/website.yaml b/.github/workflows/website.yaml new file mode 100644 index 000000000..e1b62779d --- /dev/null +++ b/.github/workflows/website.yaml @@ -0,0 +1,32 @@ +name: Website + +on: + push: + branches: + - main + paths: + - "website/**" + pull_request: + +defaults: + run: + working-directory: ./website + +jobs: + website-format: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up Node + uses: actions/setup-node@v4 + with: + node-version-file: "website/.nvmrc" + cache: "yarn" + cache-dependency-path: "website/yarn.lock" + + - name: Install Dependencies + run: yarn install --prefer-offline --frozen-lockfile + + - name: Format + run: yarn format From 4f0a6e68034498b2084f7fa48b54216db16abb52 Mon Sep 17 00:00:00 2001 From: Jakub Nowakowski Date: Thu, 23 Nov 2023 12:27:23 +0100 Subject: [PATCH 2/3] Add basic GH workflow for dapp workspace This is an initial implementation of the CI process to check formatting in `dapp` workspace. --- .github/workflows/dapp.yaml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/dapp.yaml diff --git a/.github/workflows/dapp.yaml b/.github/workflows/dapp.yaml new file mode 100644 index 000000000..a06389992 --- /dev/null +++ b/.github/workflows/dapp.yaml @@ -0,0 +1,32 @@ +name: dApp + +on: + push: + branches: + - main + paths: + - "dapp/**" + pull_request: + +defaults: + run: + working-directory: ./dapp + +jobs: + dapp-format: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up Node + uses: actions/setup-node@v4 + with: + node-version-file: "dapp/.nvmrc" + cache: "yarn" + cache-dependency-path: "dapp/yarn.lock" + + - name: Install Dependencies + run: yarn install --prefer-offline --frozen-lockfile + + - name: Format + run: yarn format From 530bb8644bdbafb5723e92bf8ac5bb71b412adf1 Mon Sep 17 00:00:00 2001 From: Jakub Nowakowski Date: Thu, 23 Nov 2023 12:34:04 +0100 Subject: [PATCH 3/3] Add build execution in dapp and website CI --- .github/workflows/dapp.yaml | 18 ++++++++++++++++++ .github/workflows/website.yaml | 18 ++++++++++++++++++ 2 files changed, 36 insertions(+) diff --git a/.github/workflows/dapp.yaml b/.github/workflows/dapp.yaml index a06389992..81dc9c31c 100644 --- a/.github/workflows/dapp.yaml +++ b/.github/workflows/dapp.yaml @@ -30,3 +30,21 @@ jobs: - name: Format run: yarn format + + dapp-build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up Node + uses: actions/setup-node@v4 + with: + node-version-file: "dapp/.nvmrc" + cache: "yarn" + cache-dependency-path: "dapp/yarn.lock" + + - name: Install Dependencies + run: yarn install --prefer-offline --frozen-lockfile + + - name: Build + run: yarn build diff --git a/.github/workflows/website.yaml b/.github/workflows/website.yaml index e1b62779d..89583fbb3 100644 --- a/.github/workflows/website.yaml +++ b/.github/workflows/website.yaml @@ -30,3 +30,21 @@ jobs: - name: Format run: yarn format + + website-build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up Node + uses: actions/setup-node@v4 + with: + node-version-file: "website/.nvmrc" + cache: "yarn" + cache-dependency-path: "website/yarn.lock" + + - name: Install Dependencies + run: yarn install --prefer-offline --frozen-lockfile + + - name: Build + run: yarn build