Repository navigation
51 lines (48 loc) · 1.89 KB
/
Copy pathcheck_method_signatures.yml
File metadata and controls
51 lines (48 loc) · 1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: check_method_signatures
on:
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
schedule:
- cron: "0 0 * * 1" # Mondays at 00:00 UTC
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
check:
if: github.event_name != 'pull_request' || !github.event.pull_request.draft
name: "Compare Ruby method signatures against Rails"
runs-on: ubuntu-latest
env:
NLS_LANG: American_America.AL32UTF8
steps:
- uses: actions/checkout@v7
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 'ruby'
rubygems: latest
- name: Create symbolic link for libaio library compatibility
run: |
sudo ln -s /usr/lib/x86_64-linux-gnu/libaio.so.1t64 /usr/lib/x86_64-linux-gnu/libaio.so.1
- name: Download Oracle instant client
run: |
wget -q https://download.oracle.com/otn_software/linux/instantclient/instantclient-basic-linuxx64.zip
wget -q https://download.oracle.com/otn_software/linux/instantclient/instantclient-sdk-linuxx64.zip
- name: Install Oracle instant client
run: |
sudo unzip -q instantclient-basic-linuxx64.zip -d /opt/oracle/
sudo unzip -qo instantclient-sdk-linuxx64.zip -d /opt/oracle/
ORACLE_HOME=$(find /opt/oracle -name "instantclient_*" -type d | head -1)
echo "ORACLE_HOME=$ORACLE_HOME" >> $GITHUB_ENV
echo "LD_LIBRARY_PATH=$ORACLE_HOME" >> $GITHUB_ENV
echo "$ORACLE_HOME" >> $GITHUB_PATH
- name: Bundle install
run: |
bundle install --jobs 4 --retry 3
- name: Check method signatures against Rails
run: |
bundle exec ruby -Ilib ci/check_method_signatures.rb