From aa8cddcddf08fef078bc6d4d3df350603b3f33ef Mon Sep 17 00:00:00 2001 From: Krzysztof Naglik Date: Sat, 12 Aug 2023 12:33:12 +0200 Subject: [PATCH] Run CI every friday at 6AM and update readme (#23) --- .github/workflows/ci.yaml | 3 +++ README.md | 12 ++++++------ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 404720c..3104f85 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -6,11 +6,14 @@ on: - '**' tags-ignore: - '**' + schedule: + - cron: '6 0 * * 5' jobs: unit_test: name: Run tests runs-on: ubuntu-22.04 + timeout-minutes: 10 steps: - name: Set up toolchain uses: actions/setup-go@v3 diff --git a/README.md b/README.md index 6013dd2..352bb45 100644 --- a/README.md +++ b/README.md @@ -81,12 +81,12 @@ offers, priceRange, err := session.GetOffers( SrcCities: []string{"Madrid"}, DstCities: []string{"Estocolmo"}, Args: flights.Args{ - Adults: 2, - Currency: currency.EUR, - Stops: flights.Stop1, - Class: flights.Economy, - TripType: flights.RoundTrip, - Lang: language.Spanish, + Travelers: flights.Travelers{Adults: 2}, + Currency: currency.EUR, + Stops: flights.Stop1, + Class: flights.Economy, + TripType: flights.RoundTrip, + Lang: language.Spanish, }, }, )