From ea2680863bc480b37cab30122e64a33c42e3595f Mon Sep 17 00:00:00 2001 From: Alexey Korolev Date: Fri, 8 Nov 2024 09:28:07 +0300 Subject: [PATCH] Edit github actions --- .github/workflows/generate.yml | 7 ++++--- hooks/post_gen_project.sh | 7 +------ {{ cookiecutter.name }}/Gemfile | 3 --- 3 files changed, 5 insertions(+), 12 deletions(-) delete mode 100644 {{ cookiecutter.name }}/Gemfile diff --git a/.github/workflows/generate.yml b/.github/workflows/generate.yml index cb9be4f..0f6b28e 100644 --- a/.github/workflows/generate.yml +++ b/.github/workflows/generate.yml @@ -13,10 +13,11 @@ jobs: - name: Generate project and run tests run: | - export PATH=~/.rbenv/shims:"$PATH" + echo "$HOME/.local/share/mise/shims" >> $GITHUB_PATH - brew install cookiecutter rbenv mint fastlane && - rbenv install 3.0.6 && + brew install cookiecutter mise fastlane && + mise settings set experimental true && cookiecutter --no-input -f . && cd Project && + mise install && fastlane scan diff --git a/hooks/post_gen_project.sh b/hooks/post_gen_project.sh index 3480ede..1790e65 100755 --- a/hooks/post_gen_project.sh +++ b/hooks/post_gen_project.sh @@ -5,16 +5,11 @@ make project # Download .gitignore file curl -L 'https://www.gitignore.io/api/swift,macos,fastlane' > .gitignore -echo '.cache' >> .gitignore {% if cookiecutter.ignore_xcproject == "Yes" %} echo '{{ cookiecutter.name }}.xcodeproj' >> .gitignore - echo '{{ cookiecutter.name }}.xcworkspace' >> .gitignore {% endif %} -echo 'Pods' >> .gitignore - -make fmt -make gems +mise run fmt # Stamp current version of xcode in .xcode-version file xcodebuild -version | sed 's/Xcode //' | head -n 1 > .xcode-version diff --git a/{{ cookiecutter.name }}/Gemfile b/{{ cookiecutter.name }}/Gemfile deleted file mode 100644 index d45950f..0000000 --- a/{{ cookiecutter.name }}/Gemfile +++ /dev/null @@ -1,3 +0,0 @@ -source 'https://rubygems.org' - -gem 'cocoapods', '~> 1.15.0'