Skip to content

Commit e901ba5

Browse files
committed
add two actions
1 parent 42f8f11 commit e901ba5

3 files changed

Lines changed: 24 additions & 2 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: "Publish Pytest Results"
2+
description: "Upload pytest junit xml"
3+
4+
runs:
5+
using: "composite"
6+
steps:
7+
- name: Upload test results
8+
uses: actions/upload-artifact@v4
9+
with:
10+
name: pytest-results
11+
path: backend/test-results.xml
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: "Setup TFLint"
2+
description: "Install TFLint locally"
3+
4+
runs:
5+
using: "composite"
6+
steps:
7+
- name: Install TFLint
8+
shell: bash
9+
run: |
10+
curl -s https://raw.githubusercontent.com/terraform-linters/tflint/master/install_linux.sh | bash
11+
sudo mv tflint /usr/local/bin/

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ jobs:
179179

180180
- name: Publish test results
181181
if: always()
182-
uses: EnricoMi/publish-unit-test-result-action@v2
182+
uses: ./.github/actions/publish-test-results
183183
with:
184184
files: |
185185
backend/test-results-unit.xml
@@ -261,7 +261,7 @@ jobs:
261261
run: terraform validate
262262

263263
- name: Run tflint
264-
uses: terraform-linters/setup-tflint@v3
264+
uses: ./.github/actions/setup-tflint
265265
- run: |
266266
cd infra
267267
tflint --init

0 commit comments

Comments
 (0)