ruby/.github/workflows/check_dependencies.yml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

79 строки
2.1 KiB
YAML
Исходник Обычный вид История

2020-09-25 10:09:20 +03:00
name: Check Dependencies
on:
push:
paths-ignore:
- 'doc/**'
2024-05-09 04:45:45 +03:00
- '**/man/*'
- '**.md'
- '**.rdoc'
- '**/.document'
- '.*.yml'
pull_request:
paths-ignore:
- 'doc/**'
2024-05-09 04:45:45 +03:00
- '**/man/*'
- '**.md'
- '**.rdoc'
- '**/.document'
- '.*.yml'
2023-03-28 15:01:44 +03:00
merge_group:
concurrency:
2021-11-21 13:17:27 +03:00
group: ${{ github.workflow }} / ${{ startsWith(github.event_name, 'pull') && github.ref_name || github.sha }}
cancel-in-progress: ${{ startsWith(github.event_name, 'pull') }}
permissions:
contents: read
2020-09-25 10:09:20 +03:00
jobs:
update-deps:
2020-10-21 05:03:12 +03:00
strategy:
matrix:
2021-11-18 11:39:28 +03:00
os: [ubuntu-20.04]
2020-10-21 05:03:12 +03:00
fail-fast: true
2020-10-21 05:03:12 +03:00
runs-on: ${{ matrix.os }}
2023-07-13 07:17:44 +03:00
if: >-
${{!(false
|| contains(github.event.head_commit.message, '[DOC]')
2024-04-08 15:26:11 +03:00
|| contains(github.event.head_commit.message, 'Document')
2023-07-13 07:17:44 +03:00
|| contains(github.event.pull_request.title, '[DOC]')
2024-04-08 15:26:11 +03:00
|| contains(github.event.pull_request.title, 'Document')
|| contains(github.event.pull_request.labels.*.name, 'Documentation')
2024-08-22 10:38:50 +03:00
|| (github.event_name == 'push' && github.event.pull_request.user.login == 'dependabot[bot]')
2023-07-13 07:17:44 +03:00
)}}
2020-09-25 10:09:20 +03:00
steps:
2024-09-29 15:38:14 +03:00
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- uses: ./.github/actions/setup/ubuntu
if: ${{ contains(matrix.os, 'ubuntu') }}
- uses: ./.github/actions/setup/macos
if: ${{ contains(matrix.os, 'macos') }}
- uses: ./.github/actions/setup/directories
- uses: ruby/setup-ruby@a6e6f86333f0a2523ece813039b8b4be04560854 # v1.190.0
with:
ruby-version: '3.0'
bundler: none
2020-09-25 10:09:20 +03:00
- name: Run configure
run: ./configure -C --disable-install-doc --disable-rubygems --with-gcc 'optflags=-O0' 'debugflags=-save-temps=obj -g'
- run: make all golf
2024-09-07 15:43:38 +03:00
- run: ./goruby -veh
2020-09-25 10:09:20 +03:00
- run: ruby tool/update-deps --fix
2020-09-25 10:09:20 +03:00
- run: git diff --no-ext-diff --ignore-submodules --exit-code
- uses: ./.github/actions/slack
2020-09-25 10:09:20 +03:00
with:
label: ${{ matrix.os }} / Dependencies need to update
2020-09-25 10:09:20 +03:00
SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot
if: ${{ failure() }}