Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Remove arm-ttk ci job #2735

Merged
merged 1 commit into from
Jan 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 0 additions & 61 deletions .github/workflows/arm-ttk.yml

This file was deleted.

40 changes: 40 additions & 0 deletions .github/workflows/bicep-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Validate Bicep templates

on:
pull_request:
branches: [ main ]
paths:
- 'templates/azure/**'
- 'templates/iotedge-lorawan-starterkit/**'
push:
branches: [ main ]
paths:
- 'templates/azure/**'
- 'templates/iotedge-lorawan-starterkit/**'
workflow_dispatch:

jobs:
validate_bicep_templates:
name: Build and Validate Bicep Templates
runs-on: ubuntu-latest

steps:
- name: Apply arm-templates label on PR
uses: actions/github-script@v7
if: ${{ github.event_name == 'pull_request' }}
with:
script: |
github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ['arm-templates']
})

- uses: actions/checkout@v4.1.1
with:
submodules: recursive

- name: Lint Bicep templates and Generate ARM template
working-directory: templates/azure
run: az bicep build --file azuredeploy.bicep --outfile azuredeploy.json
Loading