|
40 | 40 | - name: Lint |
41 | 41 | run: npm run lint && ./lint.sh |
42 | 42 |
|
43 | | - |
44 | | - test-cross-platform: |
45 | | - runs-on: ${{ matrix.os }} |
46 | | - strategy: |
47 | | - fail-fast: false |
48 | | - matrix: |
49 | | - os: [ubuntu-latest, macos-13] |
50 | | - steps: |
51 | | - - name: Check out repository code |
52 | | - uses: actions/checkout@v2 |
53 | | - |
54 | | - - name: Set up Docker on macOS with Colima |
55 | | - if: runner.os == 'macOS' |
56 | | - uses: douglascamata/setup-docker-macos-action@v1 |
57 | | - |
58 | | - - name: Verify Docker |
59 | | - run: docker --version |
60 | | - |
61 | | - - name: Install dependencies (macOS) |
62 | | - if: runner.os == 'macOS' |
63 | | - run: | |
64 | | - brew install shellcheck yamllint |
65 | | - npm install -g npm@latest |
66 | | - |
67 | | - - name: Build Fablo |
68 | | - run: | |
69 | | - shellcheck --version && \ |
70 | | - yamllint -v && \ |
71 | | - npm install && \ |
72 | | - npm run build && \ |
73 | | - ./fablo-build.sh |
74 | | - |
75 | | - - name: Run unit tests |
76 | | - run: npm run test:unit |
77 | | - |
78 | | - - name: Lint |
79 | | - run: npm run lint |
80 | | - |
81 | | - |
82 | 43 |
|
83 | 44 | # test-k8: |
84 | 45 | # needs: test-main |
@@ -212,10 +173,32 @@ jobs: |
212 | 173 | |
213 | 174 | test-05-v3: |
214 | 175 | needs: test-main |
215 | | - runs-on: ubuntu-latest |
| 176 | + runs-on: macos-15 |
216 | 177 | steps: |
217 | 178 | - name: Check out repository code |
218 | 179 | uses: actions/checkout@v2 |
| 180 | + |
| 181 | + - name: Install Docker + Colima |
| 182 | + run: | |
| 183 | + brew update |
| 184 | + brew install qemu colima docker |
| 185 | + brew uninstall --ignore-dependencies lima |
| 186 | + curl https://raw.githubusercontent.com/Homebrew/homebrew-core/45464b6c4788a80be3f131ab5e2a4468cdfa960c/Formula/l/lima.rb > lima.rb |
| 187 | + brew install lima.rb |
| 188 | + LIMACTL_PATH=$(brew --prefix)/bin/limactl |
| 189 | + sudo curl -L -o $LIMACTL_PATH https://github.com/mikekazakov/lima-nohvf/raw/master/limactl |
| 190 | + sudo chmod +x $LIMACTL_PATH |
| 191 | + colima start --network-address --arch arm64 --vm-type=qemu |
| 192 | + mkdir -p ~/.docker/cli-plugins |
| 193 | + brew install docker-compose |
| 194 | + ln -sfn $(brew --prefix)/opt/docker-compose/bin/docker-compose ~/.docker/cli-plugins/docker-compose |
| 195 | +
|
| 196 | + - name: Install dependencies |
| 197 | + run: | |
| 198 | + brew install shellcheck yamllint |
| 199 | + npm install -g npm@latest |
| 200 | + npm install |
| 201 | +
|
219 | 202 | |
220 | 203 | - name: Build Fablo |
221 | 204 | run: | |
|
0 commit comments