我正在尝试为 Gitlab CI 设置 pronto,本地一切正常,但是当 pronto 在 Gitlab CI 上运行时,出现“Rugged::ReferenceError: revspec 'origin/master' not found”错误
cache:
paths:
- vendor/
services:
- name: mysql:8.0
command: ["mysqld", "--character-set-server=utf8mb4", "--collation-server=utf8mb4_unicode_ci", "--default-authentication-plugin=mysql_native_password"]
variables:
MYSQL_DATABASE: $MYSQL_DATABASE
MYSQL_ROOT_PASSWORD: $MYSQL_ROOT_PASSWORD
DB_USERNAME: $DB_USERNAME
DB_HOST: $DB_HOST
DISABLE_SPRING: 1
before_script:
- cp config/database.yml.example config/database.yml
- apt-get update -qq && apt-get install -y -qq cmake
- gem install bundler --no-document
- bundle check || bundle install --path vendor --jobs $(nproc) "${FLAGS[@]}"
spec:
script:
- bundle exec rspec
pronto:
script:
- bundle exec …Run Code Online (Sandbox Code Playgroud)