From 7f2474d213c1ae79847026a86ae4cb72c0b8edef Mon Sep 17 00:00:00 2001 From: filip mertens Date: Sat, 16 Mar 2024 14:15:35 +0100 Subject: [PATCH] mac tests --- .circleci/config.yml | 52 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 51 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index d2cb582015..0440c145fc 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -461,7 +461,54 @@ jobs: root: apps/remixdesktop paths: - "release" - + test-remixdesktop-mac: + macos: + xcode: 14.2.0 + resource_class: + macos.m1.large.gen1 + working_directory: ~/remix-project + steps: + - checkout + - attach_workspace: + at: . + - run: unzip ./persist/desktopbuild.zip + - run: + command: | + ls -la dist/apps/remix-ide + nvm install 20.0.0 + nvm use 20.0.0 + - restore_cache: + keys: + - remixdesktop-deps-mac-{{ checksum "apps/remixdesktop/yarn.lock" }} + - run: + command: | + nvm use 20.0.0 + cd apps/remixdesktop && yarn + yarn add @remix-project/remix-ws-templates + - save_cache: + key: remixdesktop-deps-mac-{{ checksum "apps/remixdesktop/yarn.lock" }} + paths: + - apps/remixdesktop/node_modules + - run: + command: | + nvm use 20 + mkdir apps/remixdesktop/build + cp -r dist/apps/remix-ide apps/remixdesktop/build + cd apps/remixdesktop + yarn + - run: + command: | + nvm use 20 + cd apps/remixdesktop + yarn installRipGrepMacOXarm64 + PUBLISH_FOR_PULL_REQUEST='false' USE_HARD_LINKS=false yarn dist --arm64 + - run: + name: "Run tests" + command: | + nvm use 20 + cd apps/remixdesktop + yarn run test:app:mac + uploadartifacts: docker: - image: cimg/node:20.0.0-browsers @@ -714,6 +761,9 @@ workflows: - build-remixdesktop-mac: requires: - build-desktop + - test-remixdesktop-mac: + requires: + - build-desktop - build-remixdesktop-windows: requires: - build-desktop