• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

samsmithnz / GitHubActionsDotNet / 7900757945

14 Feb 2024 11:53AM CUT coverage: 76.33%. Remained the same
7900757945

Pull #133

github

web-flow
Merge 652e32ffc into 5ca82b379
Pull Request #133: Bump the core group in /src/GitHubActionsDotNet with 1 update

144 of 222 branches covered (64.86%)

Branch coverage included in aggregate %.

559 of 699 relevant lines covered (79.97%)

13.88 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

84.62
/src/GitHubActionsDotNet/Helpers/AzureStepHelper.cs
1
using GitHubActionsDotNet.Models;
2
using System.Collections.Generic;
3

4
namespace GitHubActionsDotNet.Helpers
5
{
6
    public static class AzureStepHelper
7
    {
8
        public static Step AddAzureFunctionDeployStep(string name = null,
9
            string appName = null,
10
            string package = null,
11
            string publishProfileName = null,
12
            string _if = null,
13
            Dictionary<string, string> env = null)
14
        {
15
            if (name == null)
1!
16
            {
17
                name = "Deploy to Azure Function App";
×
18
            }
19
            Step step = BaseStep.AddBaseStep(name, _if, env);
1✔
20
            step.uses = "Azure/functions-action@v1";
1✔
21
            step.with = new Dictionary<string, string>()
1✔
22
            {
1✔
23
                {"app-name", appName},
1✔
24
                {"publish-profile", publishProfileName},
1✔
25
                {"package", package}
1✔
26
            };
1✔
27
            return step;
1✔
28
        }
29

30
        public static Step AddAzureWebAppDeployStep(string name = null,
31
            string appName = null,
32
            string package = null,
33
            string publishProfileName = null,
34
            string _if = null,
35
            Dictionary<string, string> env = null)
36
        {
37
            if (name == null)
1!
38
            {
39
                name = "Deploy to Azure Web App";
×
40
            }
41
            Step step = BaseStep.AddBaseStep(name, _if, env);
1✔
42
            step.uses = "Azure/webapps-deploy@v2";
1✔
43
            step.with = new Dictionary<string, string>()
1✔
44
            {
1✔
45
                {"app-name", appName},
1✔
46
                {"publish-profile", publishProfileName},
1✔
47
                {"package", package}
1✔
48
            };
1✔
49
            return step;
1✔
50
        }
51
    }
52
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc