File tree Expand file tree Collapse file tree 4 files changed +14
-22
lines changed
Expand file tree Collapse file tree 4 files changed +14
-22
lines changed Original file line number Diff line number Diff line change @@ -27,12 +27,16 @@ jobs:
2727 - name : Run go vet
2828 run : ./mvx go vet ./...
2929
30+ - name : Install golangci-lint
31+ run : ./mvx install-golangci-lint
32+
3033 - name : Check formatting
3134 run : |
3235 GOROOT=$(./mvx go env GOROOT)
33- if [ "$($GOROOT/bin/gofmt -s -l . | wc -l)" -gt 0 ]; then
36+ unformatted=$($GOROOT/bin/gofmt -s -l .)
37+ if [ -n "$unformatted" ]; then
3438 echo "The following files are not formatted:"
35- $GOROOT/bin/gofmt -s -l .
39+ echo "$unformatted"
3640 exit 1
3741 fi
3842
6165 website:
6266 - 'website/**'
6367
64- - name : Set up JDK 21 for website
65- if : steps.website-changes.outputs.website == 'true'
66- uses : actions/setup-java@v4
67- with :
68- java-version : ' 21'
69- distribution : ' temurin'
70- cache : maven
71-
7268 - name : Check website build
7369 if : steps.website-changes.outputs.website == 'true'
7470 run : |
8076 echo "SITE_PATH=$SITE_PATH" >> $GITHUB_ENV
8177 echo "GITHUB_REPOSITORY=$GITHUB_REPOSITORY SITE_DIR=$SITE_DIR SITE_URL=$SITE_URL SITE_PATH=$SITE_PATH"
8278 # Build website to catch template syntax errors
83- cd website
84- QUARKUS_ROQ_GENERATOR_BATCH=true mvn clean package quarkus:run -DskipTests --no-transfer-progress \
79+ QUARKUS_ROQ_GENERATOR_BATCH=true ./mvx mvn clean package quarkus:run -f website -DskipTests --no-transfer-progress \
8580 -Dquarkus.http.root-path=$SITE_PATH \
8681 -Dsite.url=$SITE_URL
8782
Original file line number Diff line number Diff line change 2222 with :
2323 fetch-depth : 0 # Fetch all history for proper git info
2424
25- - name : Set up JDK 21
26- uses : actions/setup-java@v4
27- with :
28- java-version : ' 21'
29- distribution : ' temurin'
30- cache : maven
31-
3225 - name : Build website
3326 shell : bash
3427 run : |
4033 echo "SITE_URL=$SITE_URL" >> $GITHUB_ENV
4134 echo "SITE_PATH=$SITE_PATH" >> $GITHUB_ENV
4235 echo "GITHUB_REPOSITORY=$GITHUB_REPOSITORY SITE_DIR=$SITE_DIR SITE_URL=$SITE_URL SITE_PATH=$SITE_PATH"
43- cd website
44- QUARKUS_ROQ_GENERATOR_BATCH=true mvn clean package quarkus:run -DskipTests --no-transfer-progress \
36+ QUARKUS_ROQ_GENERATOR_BATCH=true ./mvx mvn clean package quarkus:run -f website -DskipTests --no-transfer-progress \
4537 -Dquarkus.http.root-path=$SITE_PATH \
4638 -Dsite.url=$SITE_URL
4739
Original file line number Diff line number Diff line change 5252 script : "go fmt ./..."
5353 } ,
5454
55+ "install-golangci-lint" : {
56+ description : "Install golangci-lint linter" ,
57+ script : "go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.5.0"
58+ } ,
59+
5560 lint : {
5661 description : "Run linter" ,
5762 script : "golangci-lint run"
Original file line number Diff line number Diff line change 44# The version of mvx to download and use
55# Can be a specific version (e.g., "1.0.0") or "latest" for the most recent release
66# For development, use "dev" when you have a local mvx-dev binary
7- mvxVersion =0.8 .0
7+ mvxVersion =0.11 .0
88
99# Alternative download URL (optional)
1010# If not specified, defaults to GitHub releases
You can’t perform that action at this time.
0 commit comments