Hello everyone I’m trying to run the config below but without success, I don’t know what I’m doing wrong here checked other issues but don’t find something useful.
I’m getting this error:
Config does not conform to schema: {:workflows {:ios_build {:jobs [nil nil nil
# iOS CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/ios-migrating-from-1-2/ for more details
#
version: 2
jobs:
# iOS Build
ios_build:
# Specify the Xcode version to use
macos:
xcode: "10.1.0"
shell: /bin/bash --login -o pipefail
steps:
- run:
name: Build
command: bundle exec fastlane ios $RN_RELEASE_TYPE use_temporary_keychain:true
- store_artifacts:
path: output
# node
node:
docker:
- image: circleci/node:8
steps:
- checkout
- restore_cache:
key: yarn-v1-{{ checksum "yarn.lock" }}-{{ arch }}
- restore_cache:
key: node-v1-{{ checksum "package.json" }}-{{ arch }}
- run: yarn install
- save_cache:
key: yarn-v1-{{ checksum "yarn.lock" }}-{{ arch }}
paths:
- ~/.cache/yarn
- save_cache:
key: node-v1-{{ checksum "package.json" }}-{{ arch }}
paths:
- node_modules
- persist_to_workspace:
root: ~/demo-react-native
paths:
- node_modules
# Creates an .env from ENV variables for use with react-native-config
shellcheck:
docker:
- image: nlknguyen/alpine-shellcheck:v0.4.6
steps:
- run:
name: Create .env file
command: |
ENV_WHITELIST=${ENV_WHITELIST:-"^RN"}
printf "Creating an .env file with the following whitelist:\n"
printf "%s\n\n" $ENV_WHITELIST
set | egrep -e $ENV_WHITELIST | egrep -v "^_" | egrep -v "WHITELIST" > .env
printf "\n.env created with contents:\n"
cat .env
workflows:
version: 2
ios_build:
jobs:
- shellcheck
- alpha:
context: pda-dev
filters:
branches:
only:
- develop
- beta:
context: pda-beta
filters:
branches:
only:
- staging
- prod:
context: pda-prod
filter:
branches:
only:
- master
requires:
- shellcheck
- node