|
| 1 | +name: CI |
| 2 | + |
| 3 | +on: [push, pull_request] |
| 4 | + |
| 5 | +jobs: |
| 6 | + v14: |
| 7 | + runs-on: ubuntu-22.04 |
| 8 | + container: |
| 9 | + image: "ubuntu:22.04" |
| 10 | + steps: |
| 11 | + - name: Install required dependencies |
| 12 | + run: | |
| 13 | + apt update |
| 14 | + apt install --yes sudo |
| 15 | + sudo apt install --yes git |
| 16 | + sudo apt install --yes curl |
| 17 | + curl --location https://deb.nodesource.com/setup_14.x | sudo --preserve-env bash - |
| 18 | + sudo DEBIAN_FRONTEND=noninteractive apt install --yes nodejs |
| 19 | + - uses: actions/checkout@v2 |
| 20 | + # workaround for https://github.com/actions/runner/issues/2033 |
| 21 | + - name: ownership workaround |
| 22 | + run: git config --global --add safe.directory '*' |
| 23 | + - name: Install yarn |
| 24 | + run: | |
| 25 | + npm install --global yarn |
| 26 | + node --version |
| 27 | + yarn global add yarn@latest |
| 28 | + - name: Install dependencies |
| 29 | + run: yarn install --ignore-engines --frozen-lockfile |
| 30 | + - name: Build packages |
| 31 | + run: yarn build |
| 32 | + - name: Test |
| 33 | + run: yarn test-ci |
| 34 | + |
| 35 | + v16: |
| 36 | + runs-on: ubuntu-22.04 |
| 37 | + container: |
| 38 | + image: "ubuntu:22.04" |
| 39 | + steps: |
| 40 | + - name: Install required dependencies |
| 41 | + run: | |
| 42 | + apt update |
| 43 | + apt install --yes sudo |
| 44 | + sudo apt install --yes git |
| 45 | + sudo apt install --yes curl |
| 46 | + curl --location https://deb.nodesource.com/setup_16.x | sudo --preserve-env bash - |
| 47 | + sudo DEBIAN_FRONTEND=noninteractive apt install --yes nodejs |
| 48 | + - uses: actions/checkout@v2 |
| 49 | + # workaround for https://github.com/actions/runner/issues/2033 |
| 50 | + - name: ownership workaround |
| 51 | + run: git config --global --add safe.directory '*' |
| 52 | + - name: Install yarn |
| 53 | + run: | |
| 54 | + npm install --global yarn |
| 55 | + node --version |
| 56 | + yarn global add yarn@latest |
| 57 | + - name: Install dependencies |
| 58 | + run: yarn install --ignore-engines --frozen-lockfile |
| 59 | + - name: Build packages |
| 60 | + run: yarn build |
| 61 | + - name: Test |
| 62 | + run: yarn test-ci |
| 63 | + |
| 64 | + v18: |
| 65 | + runs-on: ubuntu-22.04 |
| 66 | + container: |
| 67 | + image: "ubuntu:22.04" |
| 68 | + steps: |
| 69 | + - name: Install required dependencies |
| 70 | + run: | |
| 71 | + apt update |
| 72 | + apt install --yes sudo |
| 73 | + sudo apt install --yes git |
| 74 | + sudo apt install --yes curl |
| 75 | + curl --location https://deb.nodesource.com/setup_18.x | sudo --preserve-env bash - |
| 76 | + sudo DEBIAN_FRONTEND=noninteractive apt install --yes nodejs |
| 77 | + - uses: actions/checkout@v2 |
| 78 | + # workaround for https://github.com/actions/runner/issues/2033 |
| 79 | + - name: ownership workaround |
| 80 | + run: git config --global --add safe.directory '*' |
| 81 | + - name: Install yarn |
| 82 | + run: | |
| 83 | + npm install --global yarn |
| 84 | + node --version |
| 85 | + yarn global add yarn@latest |
| 86 | + - name: Install dependencies |
| 87 | + run: yarn install --ignore-engines --frozen-lockfile |
| 88 | + - name: Build packages |
| 89 | + run: yarn build |
| 90 | + - name: Test |
| 91 | + run: yarn test-ci |
| 92 | + |
| 93 | + windows: |
| 94 | + runs-on: windows-2022 |
| 95 | + steps: |
| 96 | + - uses: actions/checkout@v2 |
| 97 | + - name: Update yarn |
| 98 | + run: | |
| 99 | + node --version |
| 100 | + yarn global add yarn@latest |
| 101 | + - name: Install dependencies |
| 102 | + run: yarn install --ignore-engines --frozen-lockfile |
| 103 | + - name: Build packages |
| 104 | + run: yarn build |
| 105 | + - name: Test |
| 106 | + run: yarn test-ci |
0 commit comments