Skip to content

Bump actions/download-artifact from 3 to 4 in the github-actions group #570

Bump actions/download-artifact from 3 to 4 in the github-actions group

Bump actions/download-artifact from 3 to 4 in the github-actions group #570

Workflow file for this run

name: ci
on:
pull_request:
paths-ignore:
- "**/*.asciidoc"
- "**/*.md"
- "**/*.png"
push:
branches:
- main
paths-ignore:
- "**/*.asciidoc"
- "**/*.md"
- "**/*.png"
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: lint
run: ./gradlew lint
- name: Verify OSS compliance
run: ./gradlew verifyNoticeFile
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: ./gradlew assemble
- name: Test
run: ./tests.sh
- name: Store test results
if: success() || failure()
uses: actions/upload-artifact@v3
with:
name: test-results
path: |
**/build/test-results/testRelease*/TEST-*.xml
**/build/test-results/test/TEST-*.xml
# The very last job to report whether the Workflow passed.
# This will act as the Branch Protection gatekeeper
ci:
if: always()
runs-on: ubuntu-latest
needs:
- lint
- test
steps:
- id: check
uses: elastic/apm-pipeline-library/.github/actions/check-dependent-jobs@current
with:
needs: ${{ toJSON(needs) }}
- run: ${{ steps.check.outputs.isSuccess }}
test-release:
runs-on: ubuntu-latest
if: github.event_name != 'pull_request'
permissions:
attestations: write
contents: write
id-token: write
env:
TARBALL_FILE: dist.tar
steps:
- id: buildkite
name: Run Release dry-run
uses: elastic/apm-pipeline-library/.github/actions/buildkite@current
with:
vaultUrl: ${{ secrets.VAULT_ADDR }}
vaultRoleId: ${{ secrets.VAULT_ROLE_ID }}
vaultSecretId: ${{ secrets.VAULT_SECRET_ID }}
pipeline: apm-agent-android-release
pipelineBranch: ${{ github.ref_name }}
waitFor: true
printBuildLogs: false
artifactName: signed-artifacts
artifactPath: ${{ env.TARBALL_FILE }}
buildEnvVars: |
branch_specifier=${{ github.ref_name }}
target_specifier=all
dry_run=true
TARBALL_FILE=${{ env.TARBALL_FILE }}
- uses: actions/download-artifact@v4
with:
name: signed-artifacts
- name: untar the buildkite tarball
run: tar xvf ${{ env.TARBALL_FILE }}
- name: generate build provenance (jar files)
uses: github-early-access/generate-build-provenance@main
with:
subject-path: "${{ github.workspace }}/**/build/libs/*.jar"
- name: generate build provenance (aar files)
uses: github-early-access/generate-build-provenance@main
with:
subject-path: "${{ github.workspace }}/**/build/outputs/aar/*.aar"