Skip to content

e2e

e2e #273

Workflow file for this run

---
name: e2e
on:
push:
branches:
- main
workflow_dispatch:
jobs:
e2e:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- name: Checkout code
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
- name: Setup golang
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version: '1.22'
check-latest: true
cache: true
- name: Run local registry
run: podman run -d -p 5000:5000 registry:2
- name: Build test image
uses: redhat-actions/buildah-build@7a95fa7ee0f02d552a32753e7414641a04307056 # v2.13
id: test-image
with:
base-image: scratch
image: test
oci: true
- name: Push test image to local registry
uses: redhat-actions/push-to-registry@9986a6552bc4571882a4a67e016b17361412b4df # v2.7.1
with:
image: ${{ steps.test-image.outputs.image }}
registry: localhost:5000
tls-verify: false
- name: Run e2e tests
run: go run mage.go E2ETest