diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 12377064..4fe5b7e8 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -16,7 +16,7 @@ jobs: with: go-version-file: 'go.mod' - name: golangci-lint - uses: golangci/golangci-lint-action@v4 + uses: golangci/golangci-lint-action@v6 with: version: v1.58.2 @@ -54,14 +54,8 @@ jobs: - uses: actions/setup-go@v5 with: go-version-file: 'go.mod' - # - name: Install dependencies - # run: go mod download - name: Install Swagger run: go install github.com/go-swagger/go-swagger/cmd/swagger@v0.31.0 - # - name: Generate Swagger - # run: swagger generate spec -o ./swagger.json --scan-models --exclude-deps - # - name: Validate no changes - # run: diff swagger.json ./swaggerui/html/swagger.json - name: Check breaking changes if: always() id: breaking @@ -82,3 +76,15 @@ jobs: - uses: actions/checkout@v4 - name: Build docker image run: docker build . + + validate-radixconfig: + name: Test RadixConfig + runs-on: ubuntu-latest + steps: + - name: 'Fake TOKEN FOR RADIX CLI' + run: echo "APP_SERVICE_ACCOUNT_TOKEN=dummy" >> $GITHUB_ENV + - uses: actions/checkout@v4 + - name: 'Validate' + uses: equinor/radix-github-actions@v1 + with: + args: validate radix-config --config-file radixconfig.yaml diff --git a/radixconfig.yaml b/radixconfig.yaml index 25e6b700..16b9f8bb 100644 --- a/radixconfig.yaml +++ b/radixconfig.yaml @@ -45,7 +45,7 @@ spec: timezone: Europe/Oslo start: 0 7 * * 1-5 # 07:00 Monday - Friday end: 0 17 * * 1-5 # 17:00 Monday - Friday - desiredReplicas: 1 + desiredReplicas: 1 resources: requests: cpu: "50m"