Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions .github/workflows/cloudinary_dart.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Cloudinary Dart CI

on:
push:
branches:
- main
pull_request:
branches:
- '**'

jobs:
dart-test:
runs-on: ubuntu-latest

steps:
# Step 1: Checkout the code
- name: Checkout Code
uses: actions/checkout@v3

# Step 2: Set up Dart
- name: Setup Dart
uses: dart-lang/setup-dart@v1
with:
channel: stable

# Step 3: Export Cloudinary URL (Before Script)
- name: Export Cloudinary URL
run: echo "CLOUDINARY_URL=$(bash tools/get_test_cloud.sh)" >> $GITHUB_ENV

# Step 4: Run Tests for url_gen
- name: Run Tests for url_gen
working-directory: url_gen
env:
CLOUDINARY_URL: ${{ env.CLOUDINARY_URL }}
run: dart test

# Step 5: Run Tests for api
- name: Run Tests for api
working-directory: api
env:
CLOUDINARY_URL: ${{ env.CLOUDINARY_URL }}
run: dart test

# Cache Dart Dependencies
- name: Cache Pub Dependencies
uses: actions/cache@v3
with:
path: ~/.pub-cache
key: ${{ runner.os }}-pub-cache-${{ hashFiles('**/pubspec.yaml') }}
restore-keys: |
${{ runner.os }}-pub-cache-
17 changes: 0 additions & 17 deletions .travis.yml

This file was deleted.

Loading