Skip to content
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
15 changes: 15 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!--
The TITLE must be a Conventional Commit - `fix: ...`, `feat: ...` - because it becomes the
squash commit. See CONTRIBUTING.md.
-->

## What this changes

<!-- One or two sentences. If it follows an AnsibleForms change, link that pull request. -->

## Checklist

- [ ] Branch is named `<type>/<description>` and the title is a Conventional Commit
- [ ] `gofmt -l .` prints nothing, and `go vet ./...` and `go test ./...` pass
- [ ] Tried the changed flow with the built binary on a test machine, or the change does not affect it
- [ ] New or changed texts are in every language under `internal/i18n/locales`
20 changes: 19 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ name: CI
# on amd64 and arm64. A Dependabot bump of a Go module or an action has to pass it before it
# is merged.
#
# The job name is a required check in the main ruleset: renaming it breaks that rule.
# The main ruleset requires one check, CI passed, which passes only when every job did: a job
# added later is covered without changing the ruleset.

on:
pull_request:
Expand Down Expand Up @@ -50,3 +51,20 @@ jobs:
for arch in amd64 arm64; do
CGO_ENABLED=0 GOOS=linux GOARCH="$arch" go build -trimpath -o "/tmp/ansibleforms-installer_linux_$arch" .
done

# The one check the ruleset requires, so a job added later is covered without
# changing the ruleset. This passes only when every job did.
passed:
name: CI passed
if: always()
needs: [test]
runs-on: ubuntu-latest
steps:
- name: Every job passed
env:
RESULTS: ${{ join(needs.*.result, ' ') }}
run: |
echo "Job results: $RESULTS"
for result in $RESULTS; do
[ "$result" = "success" ] || { echo "::error::A CI job ended with '$result'."; exit 1; }
done
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# AnsibleForms installer

[![CI](https://img.shields.io/github/actions/workflow/status/ansibleforms/installer/ci.yml?branch=main&label=CI)](https://github.com/ansibleforms/installer/actions/workflows/ci.yml)
[![License](https://img.shields.io/badge/license-GPL--3.0-blue)](LICENSE)
[![Docs](https://img.shields.io/badge/docs-ansibleforms.com-informational)](https://ansibleforms.com)

Expand Down
Loading