mirror of
https://github.com/imjasonh/terraform-playground
synced 2026-07-16 12:42:57 +00:00
Combine py-image-builder CI into a single job (tests, lint, and Docker demo)
Co-authored-by: Jason Hall <imjasonh@users.noreply.github.com>
This commit is contained in:
parent
42c8aa50a4
commit
985b99513b
1 changed files with 14 additions and 23 deletions
37
.github/workflows/py-image-builder.yaml
vendored
37
.github/workflows/py-image-builder.yaml
vendored
|
|
@ -7,29 +7,10 @@ on:
|
|||
- ".github/workflows/py-image-builder.yaml"
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v6.0.2
|
||||
|
||||
- uses: actions/setup-go@v6.2.0
|
||||
with:
|
||||
go-version-file: py-image-builder/go.mod
|
||||
cache-dependency-path: py-image-builder/go.sum
|
||||
|
||||
- name: Run tests
|
||||
working-directory: py-image-builder
|
||||
run: go test -race ./...
|
||||
|
||||
- name: Run golangci-lint
|
||||
uses: golangci/golangci-lint-action@v9.2.0
|
||||
with:
|
||||
working-directory: py-image-builder
|
||||
version: latest
|
||||
|
||||
demo:
|
||||
# Demonstrates the docker-less builder end to end against a real registry,
|
||||
# then pulls and RUNS the built image with Docker to prove it works.
|
||||
ci:
|
||||
# Runs the unit + e2e test suite and lint, then demonstrates the docker-less
|
||||
# builder end to end against a real registry, pulling and RUNNING the built
|
||||
# image with Docker to prove it works.
|
||||
runs-on: ubuntu-latest
|
||||
services:
|
||||
registry:
|
||||
|
|
@ -52,6 +33,16 @@ jobs:
|
|||
with:
|
||||
python-version: "3.12"
|
||||
|
||||
- name: Run tests
|
||||
working-directory: py-image-builder
|
||||
run: go test -race ./...
|
||||
|
||||
- name: Run golangci-lint
|
||||
uses: golangci/golangci-lint-action@v9.2.0
|
||||
with:
|
||||
working-directory: py-image-builder
|
||||
version: latest
|
||||
|
||||
- name: Build the CLI
|
||||
working-directory: py-image-builder
|
||||
run: go build -o pib .
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue