This commit is contained in:
Fernando de Oliveira 2021-09-15 17:09:17 -03:00
Родитель 58af8a1ab1
Коммит 23463383c9
1 изменённых файлов: 35 добавлений и 0 удалений

35
.github/workflows/ci.yml поставляемый Normal file
Просмотреть файл

@ -0,0 +1,35 @@
name: Build
on:
push:
paths:
- "action.yml"
- ".github/workflows/ci.yml"
- "samples/main.bicep"
jobs:
build_and_test:
name: Build and Test
runs-on: ubuntu-latest
steps:
- name: Code checkout
uses: actions/checkout@v2
- name: Run Bicep Build action
uses: ./
with:
bicepFilePath: ./samples/main.bicep
outputFilePath: ./samples/azuredeploy.json
- name: Test action output
shell: bash
run: |
FILE="./samples/azuredeploy.json"
if test -f "$FILE"; then
echo "$FILE created successfully"
else
echo "$FILE not found."
exit 1
fi