You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/build.yml
+23-19Lines changed: 23 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -2,12 +2,15 @@ name: CI
2
2
3
3
on:
4
4
push:
5
-
branches: [master, main]
5
+
branches: [master, main]
6
6
pull_request:
7
-
branches: [master, main]
7
+
branches: [master, main]
8
8
9
9
permissions:
10
+
contents: write
11
+
statuses: write
10
12
checks: write
13
+
pull-requests: write
11
14
12
15
jobs:
13
16
set-version:
@@ -29,7 +32,7 @@ jobs:
29
32
- name: Install GitVersion
30
33
uses: gittools/actions/gitversion/setup@v3.0.0
31
34
with:
32
-
versionSpec: '5.x'
35
+
versionSpec: "5.x"
33
36
- name: Set SemVer Version
34
37
uses: gittools/actions/gitversion/execute@v3.0.0
35
38
id: gitversion
@@ -38,6 +41,7 @@ jobs:
38
41
run: |
39
42
echo "REVISION -> $GITHUB_SHA"
40
43
echo "VERSION -> $GITVERSION_SEMVER"
44
+
41
45
test:
42
46
runs-on: ubuntu-latest
43
47
needs: set-version
@@ -49,36 +53,36 @@ jobs:
49
53
- uses: actions/checkout@v4
50
54
with:
51
55
fetch-depth: 1
56
+
52
57
- name: Install Eirctl
53
58
uses: ensono/actions/eirctl-setup@v0.3.1
54
-
with:
55
-
version: 0.7.6
59
+
with:
60
+
version: 0.9.3
56
61
isPrerelease: false
57
62
58
63
- name: Run Lint
59
64
run: |
60
-
eirctl run pipeline lint
65
+
eirctl run pipeline lints
61
66
- name: Run Tests
62
67
run: |
63
-
eirctl run pipeline test
64
-
ls -alt .coverage/out
65
-
ls -lat .coverage/report-junit.xml
68
+
eirctl run pipeline gha:unit:test
69
+
66
70
- name: Publish Junit style Test Report
67
71
uses: mikepenz/action-junit-report@v4
68
72
if: always() # always run even if the previous step fails
69
73
with:
70
-
report_paths: '**/.coverage/report-junit.xml'
74
+
report_paths: "**/.coverage/report-junit.xml"
75
+
71
76
- name: Analyze with SonarCloud
72
-
# You can pin the exact commit or the version.
73
-
uses: SonarSource/sonarqube-scan-action@v5.1.0
77
+
uses: SonarSource/sonarqube-scan-action@v6
74
78
env:
75
-
SEMVER: $SEMVER
76
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information
77
-
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} # Generate a token on Sonarcloud.io, add it to the secrets of this repo with the name SONAR_TOKEN (Settings > Secrets > Actions > add new repository secret)
79
+
# Needed to get PR information
80
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
81
+
# Generate a token on Sonarcloud.io, add it to the secrets of this repo with the name SONAR_TOKEN (Settings > Secrets > Actions > add new repository secret)
insertCmd.PersistentFlags().StringToStringVarP(&f.insertKv, "config-pair", "", defaultInsertKv, " token=value pair. This can be specified multiple times.")
retrieveCmd.PersistentFlags().StringArrayVarP(&f.tokens, "token", "t", []string{}, "Token pointing to a config/secret variable. This can be specified multiple times.")
38
-
retrieveCmd.MarkPersistentFlagRequired("token")
38
+
_=retrieveCmd.MarkPersistentFlagRequired("token")
39
39
retrieveCmd.PersistentFlags().StringVarP(&f.path, "path", "p", "./app.env", "Path where to write out the replaced a config/secret variables. Special value of stdout can be used to return the output to stdout e.g. -p stdout, unix style output only")
0 commit comments