Skip to content

Commit

Permalink
Fix E2E: WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
AutomationD committed Jun 10, 2024
1 parent a3a9c8e commit 89220de
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/run.brew-and-apt-install-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ env:

on:
workflow_dispatch:
# TODO: Re-enable this after the tests are stable
# schedule:
# - cron: '0 3 * * */2'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/run.e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ jobs:
- name: Make Executable
run: |
chmod +rx "${{ github.workspace }}/bin/ize"
ize --version
ize --version
- name: Create AWS Profile
run: ize gen aws-profile
Expand Down
16 changes: 14 additions & 2 deletions .github/workflows/run.unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ jobs:
cat report.txt | go-junit-report -set-exit-code > report.xml
else
go test -v ./... -coverprofile=coverage.out -covermode=atomic 2>&1 ./... > report.txt
cat report.txt | go-junit-report -set-exit-code > report.xml
fi
- name: Publish Test Report
Expand All @@ -90,5 +91,16 @@ jobs:
with:
report_paths: './report.xml'

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
- name: Test Summary
uses: test-summary/action@v2
if: always()
with:
paths: ./report.xml

- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
files: coverage.out
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
name: coverage-${{ github.sha }}
2 changes: 1 addition & 1 deletion internal/commands/gen_tfenv.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func GenerateTerraformFiles(name string, terraformStateBucketName string, projec
)
if err != nil {
pterm.Error.Printfln("Generate terraform file for \"%s\" not completed", name)
return fmt.Errorf("can't generate backent.tf: %s", err)
return fmt.Errorf("can't generate backend.tf: %s", err)
}

varsOpts := template.VarsOpts{
Expand Down

0 comments on commit 89220de

Please sign in to comment.