feat: add pr labeler workflow (#4325) #1
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: E2E Test Upload Cache | |
on: | |
workflow_dispatch: {} | |
push: | |
branches: | |
- master | |
- release-* | |
paths-ignore: | |
- .gitignore | |
- "**.md" | |
# Not available for frontend code for now. | |
- "ui/**" | |
- .github/workflows/checklink.yaml | |
- .github/checklink_config.json | |
- .github/workflows/ci.yml | |
- .github/workflows/ci_skip.yml | |
- .github/workflows/codecov_unittest.yaml | |
- .github/workflows/integration_test.yml | |
- .github/workflows/license_checker.yml | |
- .github/workflows/must_update_changelog.yml | |
- .github/workflows/release_helm_chart.yml | |
- .github/workflows/upload_env_image.yml | |
- .github/workflows/upload_image.yml | |
- .github/workflows/upload_image_pr.yml | |
- .github/workflows/upload_latest_files.yml | |
- .github/workflows/upload_release_files.yml | |
permissions: read-all | |
jobs: | |
build-image: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: checkout codes | |
uses: actions/checkout@v4 | |
- name: build e2e images | |
env: | |
DOCKER_CACHE: 1 | |
DOCKER_CACHE_DIR: ${{github.workspace}}/cache | |
GO_BUILD_CACHE: ${{github.workspace}}/cache | |
DOCKER_CLI_EXPERIMENTAL: enabled | |
run: | | |
docker buildx create --use --name chaos-mesh-builder | |
make -j4 image e2e-image | |
- name: upload build cache | |
uses: martijnhols/actions-cache/save@main | |
with: | |
path: cache | |
key: e2e-image-build-cache-${{ runner.os }} | |
build-e2e-binary: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: checkout codes | |
uses: actions/checkout@v4 | |
- name: build e2e binary | |
env: | |
DOCKER_CACHE: 1 | |
DOCKER_CACHE_DIR: ${{github.workspace}}/cache | |
GO_BUILD_CACHE: ${{github.workspace}}/cache | |
run: | | |
make e2e-build | |
- name: upload build cache | |
uses: martijnhols/actions-cache/save@main | |
with: | |
path: cache | |
key: e2e-binary-build-cache-${{ runner.os }} |