Skip to content

Commit

Permalink
test: run integration tests against recorded api responses
Browse files Browse the repository at this point in the history
  • Loading branch information
blaugold committed Feb 19, 2021
1 parent c20965c commit 91a8d5c
Show file tree
Hide file tree
Showing 12 changed files with 7,699 additions and 95 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: CI

on:
push:
pull_request:

jobs:
build:
runs-on: ubuntu-20.04

services:
mockserver:
image: mockserver/mockserver
ports:
- 1080:1080

steps:
- uses: actions/checkout@v1

- uses: dart-lang/setup-dart@v0.5
with:
sdk: beta

- name: Install dependencies
run: pub get

- name: Run tests
run: pub run test

- name: Run example
run: dart example/lib/main.dart
env:
UNSPLASH_ACCESS_KEY: ${{ secrets.UNSPLASH_ACCESS_KEY }}
UNSPLASH_SECRET_KEY: ${{ secrets.UNSPLASH_SECRET_KEY }}
26 changes: 0 additions & 26 deletions .github/workflows/dart.yml

This file was deleted.

6 changes: 6 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: "3.7"
services:
mockserver:
image: mockserver/mockserver
ports:
- 1080:1080
Loading

0 comments on commit 91a8d5c

Please # to comment.