From d9736110ac2558ca22719093cb0282899a2c1254 Mon Sep 17 00:00:00 2001 From: Zahra TehraniNasab <50144546+realmarv@users.noreply.github.com> Date: Sun, 12 Mar 2023 20:50:59 +0330 Subject: [PATCH] feat(GitHubCI): add (#3549) --- .github/workflows/CI.yml | 106 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 106 insertions(+) create mode 100644 .github/workflows/CI.yml diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml new file mode 100644 index 0000000000..627d10a35a --- /dev/null +++ b/.github/workflows/CI.yml @@ -0,0 +1,106 @@ +name: CI + +on: [push, pull_request] + +jobs: + v14: + runs-on: ubuntu-22.04 + container: + image: "ubuntu:22.04" + steps: + - name: Install required dependencies + run: | + apt update + apt install --yes sudo + sudo apt install --yes git + sudo apt install --yes curl + curl --location https://deb.nodesource.com/setup_14.x | sudo --preserve-env bash - + sudo DEBIAN_FRONTEND=noninteractive apt install --yes nodejs + - uses: actions/checkout@v2 + # workaround for https://github.com/actions/runner/issues/2033 + - name: ownership workaround + run: git config --global --add safe.directory '*' + - name: Install yarn + run: | + npm install --global yarn + node --version + yarn global add yarn@latest + - name: Install dependencies + run: yarn install --ignore-engines --frozen-lockfile + - name: Build packages + run: yarn build + - name: Test + run: yarn test-ci + + v16: + runs-on: ubuntu-22.04 + container: + image: "ubuntu:22.04" + steps: + - name: Install required dependencies + run: | + apt update + apt install --yes sudo + sudo apt install --yes git + sudo apt install --yes curl + curl --location https://deb.nodesource.com/setup_16.x | sudo --preserve-env bash - + sudo DEBIAN_FRONTEND=noninteractive apt install --yes nodejs + - uses: actions/checkout@v2 + # workaround for https://github.com/actions/runner/issues/2033 + - name: ownership workaround + run: git config --global --add safe.directory '*' + - name: Install yarn + run: | + npm install --global yarn + node --version + yarn global add yarn@latest + - name: Install dependencies + run: yarn install --ignore-engines --frozen-lockfile + - name: Build packages + run: yarn build + - name: Test + run: yarn test-ci + + v18: + runs-on: ubuntu-22.04 + container: + image: "ubuntu:22.04" + steps: + - name: Install required dependencies + run: | + apt update + apt install --yes sudo + sudo apt install --yes git + sudo apt install --yes curl + curl --location https://deb.nodesource.com/setup_18.x | sudo --preserve-env bash - + sudo DEBIAN_FRONTEND=noninteractive apt install --yes nodejs + - uses: actions/checkout@v2 + # workaround for https://github.com/actions/runner/issues/2033 + - name: ownership workaround + run: git config --global --add safe.directory '*' + - name: Install yarn + run: | + npm install --global yarn + node --version + yarn global add yarn@latest + - name: Install dependencies + run: yarn install --ignore-engines --frozen-lockfile + - name: Build packages + run: yarn build + - name: Test + run: yarn test-ci + + windows: + runs-on: windows-2022 + steps: + - uses: actions/checkout@v2 + - name: Update yarn + run: | + node --version + yarn global add yarn@latest + - name: Install dependencies + run: yarn install --ignore-engines --frozen-lockfile + - name: Build packages + run: yarn build + - name: Test + run: yarn test-ci