File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed
Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -114,6 +114,36 @@ jobs:
114114 - name : Run the checks
115115 run : mix check
116116
117+ coverage :
118+ name : Coverage
119+ runs-on : ubuntu-latest
120+ permissions :
121+ id-token : write
122+ env :
123+ MIX_ENV : test
124+ steps :
125+ - name : Clone the repository
126+ uses : actions/checkout@v4
127+ - name : Install Nix
128+ uses : DeterminateSystems/nix-installer-action@main
129+ - name : Setup the Nix cache
130+ uses : DeterminateSystems/magic-nix-cache-action@main
131+ - name : Setup the environment
132+ run : nix build -L --no-link .#devShells.x86_64-linux.ci-minimal
133+ - name : Fetch the dependencies
134+ run : nix develop .#ci-minimal -c mix deps.get
135+ - name : Build the dependencies
136+ run : nix develop .#ci-minimal -c mix deps.compile
137+ - name : Generate the test coverage report
138+ run : nix develop .#ci-minimal -c mix coveralls.lcov
139+ - name : Upload the test coverage report
140+ uses : codecov/codecov-action@v5
141+ with :
142+ disable_search : true
143+ files : ./cover/lcov.info
144+ fail_ci_if_error : true
145+ use_oidc : true
146+
117147 docs :
118148 name : Documentation
119149 runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments