-
Notifications
You must be signed in to change notification settings - Fork 46
40 lines (38 loc) · 1.07 KB
/
lint.yml
File metadata and controls
40 lines (38 loc) · 1.07 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
name: Ruby Lint CI
on:
pull_request:
branches:
- main
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
jobs:
lint:
if: ${{ github.repository == 'GoogleCloudPlatform/functions-framework-ruby' }}
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@f808768d1510423e83855289c910610ca9b43176 # v2.17.0
with:
disable-sudo: true
egress-policy: block
allowed-endpoints: >
github.com:443
index.rubygems.org:443
objects.githubusercontent.com:443
release-assets.githubusercontent.com:443
rubygems.org:443
- name: Checkout repo
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- name: Install Ruby 3.1
uses: ruby/setup-ruby@4c56a21280b36d862b5fc31348f463d60bdc55d5 # v1.301.0
with:
ruby-version: "3.4.9"
bundler-cache: true
- name: Install toys
run: gem install --no-document toys
- name: Lint
run: "toys ci --only --test-rubocop"