CI fix, part I: update and cleanup #3219
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: integration test | |
on: | |
push: | |
branches: | |
- "main" | |
tags: | |
- v[0-9]+.[0-9]+.[0-9]+ | |
pull_request: | |
branches: | |
- "main" | |
schedule: | |
# Trigger test every day at 00:03 clock UTC | |
- cron: "3 0 * * *" | |
workflow_dispatch: | |
env: | |
CARGO_TERM_COLOR: always | |
REGISTRY: ghcr.io | |
jobs: | |
run-e2e-for-cgroups-v1: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Golang | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: 'go.mod' | |
cache-dependency-path: "go.sum" | |
- name: Log in to container registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Run e2e test | |
run: | | |
TAG=$GITHUB_REF_NAME | |
[ "$TAG" == "main" ] && TAG="latest" | |
[ "$GITHUB_EVENT_NAME" == "pull_request" ] && TAG="local" | |
make integration | |
run-e2e-for-cgroups-v2: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Golang | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: 'go.mod' | |
cache-dependency-path: "go.sum" | |
- name: Log in to container registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Run e2e test | |
run: | | |
TAG=$GITHUB_REF_NAME | |
[ "$TAG" == "main" ] && TAG="latest" | |
[ "$GITHUB_EVENT_NAME" == "pull_request" ] && TAG="local" | |
make integration |