forked from duffelhq/duffel-api-ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (36 loc) · 1.15 KB
/
code-examples.yaml
File metadata and controls
41 lines (36 loc) · 1.15 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
name: Code Examples
on:
push:
branches: [ main ]
schedule:
# daily:
- cron: '0 0 * * *'
jobs:
code_examples:
name: Code Examples
runs-on: ubuntu-latest
env:
DUFFEL_ACCESS_TOKEN: ${{ secrets.DUFFEL_ACCESS_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: .downloaded-cache
key: downloaded-cache
- uses: ruby/setup-ruby@v1
with:
ruby-version: ruby-3.1
bundler-cache: true
bundler: default
- name: Run "search and book" example
run: bundle exec ruby examples/search_and_book.rb
- name: Run "hold and pay later" example
run: bundle exec ruby examples/hold_and_pay_later.rb
- name: Run "exploring data" example
run: bundle exec ruby examples/exploring_data.rb
- name: Run "book with extra baggage" example
run: bundle exec ruby examples/book_with_extra_baggage.rb
- name: Run "book with seat" example
run: bundle exec ruby examples/book_with_seat.rb
- name: Run "book and change" example
run: bundle exec ruby examples/book_and_change.rb