Skip to content

workflows: bump actions/download-artifact from 2 to 4 #44

workflows: bump actions/download-artifact from 2 to 4

workflows: bump actions/download-artifact from 2 to 4 #44

name: Build and run integration tests for PR
on:
# We need write token for upload to GHCR and we are protecting with labels too.
pull_request_target:
branches:
- master
types:
- labeled
- opened
- reopened
- synchronize
concurrency: integration-test
jobs:
pr-integration-test-build:
name: PR - GCP build
# We only need to test this once as the rest are chained from it.
if: contains(github.event.pull_request.labels.*.name, 'ok-to-test')
uses: fluent/fluent-bit/.github/workflows/call-integration-image-build.yaml@master
with:
ref: ${{ github.event.pull_request.head.sha }}
registry: ghcr.io
username: ${{ github.actor }}
image: ${{ github.repository }}/pr-${{ github.event.number }}
image-tag: ${{ github.sha }}
environment: integration
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
pr-integration-test-build-complete:
name: PR - GCP build complete
runs-on: ubuntu-latest
needs: pr-integration-test-build
steps:
- uses: actions-ecosystem/action-add-labels@v1
name: Label the PR
with:
labels: ci/integration-docker-ok
github_token: ${{ secrets.GITHUB_TOKEN }}
number: ${{ github.event.pull_request.number }}
pr-integration-test-run-integration-gcp:
name: PR - GCP integration test
needs: pr-integration-test-build
uses: calyptia/fluent-bit-ci/.github/workflows/reusable-integration-test-gcp.yaml@main

Check failure on line 46 in .github/workflows/pr-integration-test.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/pr-integration-test.yaml

Invalid workflow file

error parsing called workflow ".github/workflows/pr-integration-test.yaml" -> "calyptia/fluent-bit-ci/.github/workflows/reusable-integration-test-gcp.yaml@main" : failed to fetch workflow: workflow was not found.
with:
image_name: ghcr.io/${{ github.repository }}/pr-${{ github.event.pull_request.number }}
image_tag: ${{ github.sha }}
secrets:
grafana_username: ${{ secrets.GRAFANA_USERNAME }}
terraform_api_token: ${{ secrets.TF_API_TOKEN }}
gcp_service_account_key: ${{ secrets.GCP_SA_KEY }}
grafana_password: ${{ secrets.GRAFANA_PASSWORD }}
pr-integration-test-run-integration-post-label:
name: PR - GCP test complete
runs-on: ubuntu-latest
needs: pr-integration-test-run-integration-gcp
steps:
- uses: actions-ecosystem/action-add-labels@v1
name: Label the PR
with:
labels: ci/integration-test-gcp-ok
github_token: ${{ secrets.GITHUB_TOKEN }}
number: ${{ github.event.pull_request.number }}
repo: fluent/fluent-bit