forked from CrowdStrike/crimson-falcon
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (35 loc) · 986 Bytes
/
build.yml
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
name: Build
on:
push:
branches: [main]
pull_request_target:
types: [labeled]
jobs:
build:
name: Build and Install Gem
if: |
github.event_name == 'push' ||
(github.event_name == 'pull_request_target' &&
github.event.label.name == 'ok-to-test')
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ["3.0", "3.1", "3.2"]
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Build gem
run: make build
- name: Install gem
run: make install
- name: Run tests
env:
FALCON_CLIENT_ID: ${{ secrets.FALCON_CLIENT_ID }}
FALCON_CLIENT_SECRET: ${{ secrets.FALCON_CLIENT_SECRET }}
FALCON_CLOUD: ${{ secrets.FALCON_CLOUD }}
run: bundle exec rspec