Skip to content

Commit

Permalink
Merge pull request #19 from jrusso1020/jrusso/only-run-coveralls-on-main
Browse files Browse the repository at this point in the history
Add CODEOWNERS and only run coveralls on main
  • Loading branch information
jrusso1020 committed May 17, 2021
2 parents 799189a + 2bbd515 commit 50a8e53
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,33 @@ jobs: # basic units of work in a run
key: v1-build-cache-{{ .Branch }}
paths: "_build"

coverall_results:
parallelism: 1 # run only one instance of this job
docker: # run the steps with Docker
- image: circleci/elixir:1.10.3 # ...with this image as the primary container; this is where all `steps` will run
environment: # environment variables for primary container
MIX_ENV: test

working_directory: ~/app # directory where steps will run

steps: # commands that comprise the `build` job
- checkout # check out source code to working directory
- run:
name: Get dependencies
command: |
mix local.hex --force
mix local.rebar --force
- restore_cache: # restores saved mix cache
# Read about caching dependencies: https://circleci.com/docs/2.0/caching/
keys: # list of cache keys, in decreasing specificity
- v1-mix-cache-{{ .Branch }}-{{ checksum "mix.lock" }}
- v1-mix-cache-{{ .Branch }}
- v1-mix-cache
- restore_cache: # restores saved build cache
keys:
- v1-build-cache-{{ .Branch }}
- v1-build-cache
- run: mix coveralls.circle # run all tests in project

workflows:
Expand All @@ -97,3 +124,13 @@ workflows:
jobs:
- build_app_and_test
- build_app_and_lint
- coverall_results:
requires:
- build_app_and_test
filters:
branches:
only:
- main



1 change: 1 addition & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@jrusso1020

0 comments on commit 50a8e53

Please sign in to comment.