# .circleci/config.yml
version: 2.1
jobs:
  build-and-test:
    macos:
      xcode: 13.2.1
    environment:
      FL_OUTPUT_DIR: output
    steps:
      - checkout
      - store_artifacts:
          path: output
      - store_test_results:
          path: output/scan
          
  swiftlint:
    docker:
      - image: bytesguy/swiftlint:latest
        auth:
          username: mydockerhub-user
          password: $DOCKERHUB_PASSWORD  # context / project UI env-var reference
    steps:
      - checkout
      - run: swiftlint lint --reporter junit | tee result.xml
      - store_artifacts:
          path: result.xml
      - store_test_results:
          path: result.xml

workflows:
  build-test:
    jobs:
      - swiftlint
      - build-and-test


# .circleci/config.yml
version: 2.1
jobs:
  build-and-test:
    macos:
      xcode: 13.2.1
    environment:
      FL_OUTPUT_DIR: output
    docker:
      - image: bytesguy/swiftlint:latest
        auth:
          username: mydockerhub-user
          password: $DOCKERHUB_PASSWORD  # context / project UI env-var reference
    steps:
      - checkout
      - run: swiftlint lint --reporter junit | tee result.xml
      - store_artifacts:
          path: result.xml
      - store_test_results:
          path: result.xml

workflows:
  build-test:
    jobs:
      - build-and-test


Build and test just runs SwiftLint for now
Build and test just runs SwiftLint for now
