Unskip telemetry specs #2813
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: Lock Dependency | |
# TODO: Make this job mandatory | |
# TODO: Make this on workflow_dispatch | |
on: | |
pull_request: | |
branches: | |
- master | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
dependency: | |
name: Depenedency changes | |
runs-on: ubuntu-22.04 | |
outputs: | |
changes: ${{ steps.changes.outputs.dependencies }} | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2 | |
id: changes | |
with: | |
filters: .github/dependency_filters.yml | |
lock: | |
runs-on: ubuntu-22.04 | |
needs: dependency | |
if: ${{ needs.dependency.outputs.changes == 'true' }} | |
strategy: | |
fail-fast: false | |
matrix: | |
engine: | |
# ADD NEW RUBIES HERE | |
- name: ruby | |
version: '3.4' | |
- name: ruby | |
version: '3.3' | |
- name: ruby | |
version: '3.2' | |
- name: ruby | |
version: '3.1' | |
- name: ruby | |
version: '3.0' | |
- name: ruby | |
version: '2.7' | |
- name: ruby | |
version: '2.6' | |
- name: ruby | |
version: '2.5' | |
- name: jruby | |
version: '9.4' | |
- name: jruby | |
version: '9.3' | |
- name: jruby | |
version: '9.2' | |
container: | |
image: ghcr.io/datadog/images-rb/engines/${{ matrix.engine.name }}:${{ matrix.engine.version }} | |
env: | |
BUNDLE_WITHOUT: check | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- run: | | |
ruby -v | |
gem -v | |
bundler -v | |
- run: bundle install | |
- run: bundle exec rake dependency:generate | |
- run: bundle exec rake dependency:lock | |
- uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0 | |
with: | |
name: lock-dependency-${{ github.run_id }}-${{ matrix.engine.name }}-${{ matrix.engine.version }} | |
path: gemfiles/${{ matrix.engine.name }}_${{ matrix.engine.version }}* | |
retention-days: 1 | |
# TODO: Change token to trigger workflow automation | |
# > New commit by GITHUB_TOKEN does not trigger workflow automation to prevent infinite loop | |
commit: | |
name: Commit changes | |
needs: lock | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
token: ${{ secrets.GHA_PAT }} | |
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8 | |
with: | |
path: gemfiles | |
pattern: lock-dependency-${{ github.run_id }}-* | |
merge-multiple: true | |
- uses: stefanzweifel/git-auto-commit-action@e348103e9026cc0eee72ae06630dbe30c8bf7a79 # v5.1.0 | |
with: | |
file_pattern: 'gemfiles/*' | |
commit_message: "[🤖] Lock Dependency: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" |