Skip to content

Commit

Permalink
add radixconfig validation step to github action
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsgstrabo committed Jul 1, 2024
1 parent b267924 commit 295f107
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand All @@ -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
2 changes: 1 addition & 1 deletion radixconfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 295f107

Please sign in to comment.