Skip to content

Commit

Permalink
chore: refactor CI
Browse files Browse the repository at this point in the history
  • Loading branch information
techouse committed Jul 3, 2024
1 parent 8b1045c commit bf85902
Showing 1 changed file with 26 additions and 6 deletions.
32 changes: 26 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,20 @@ jobs:
name: Analyze
runs-on: ubuntu-latest
steps:
- uses: subosito/flutter-action@v2
- name: Cache Pub hosted dependencies
uses: actions/cache@v4
with:
channel: stable
cache: true
path: "~/.pub-cache/hosted"
key: "os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:alice;commands:analyze"
restore-keys: |
os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:alice
os:ubuntu-latest;pub-cache-hosted;sdk:stable
os:ubuntu-latest;pub-cache-hosted
os:ubuntu-latest
- name: Setup Dart SDK
uses: dart-lang/setup-dart@v1
with:
sdk: stable
- uses: actions/checkout@v4
- name: Install Melos
run: dart pub global activate melos
Expand All @@ -41,10 +51,20 @@ jobs:
needs: analyze
runs-on: ubuntu-latest
steps:
- uses: subosito/flutter-action@v2
- name: Cache Pub hosted dependencies
uses: actions/cache@v4
with:
path: "~/.pub-cache/hosted"
key: "os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:alice;commands:test"
restore-keys: |
os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:alice
os:ubuntu-latest;pub-cache-hosted;sdk:stable
os:ubuntu-latest;pub-cache-hosted
os:ubuntu-latest
- name: Setup Dart SDK
uses: dart-lang/setup-dart@v1
with:
channel: stable
cache: true
sdk: stable
- uses: actions/checkout@v4
- name: Install Melos
run: dart pub global activate melos
Expand Down

0 comments on commit bf85902

Please sign in to comment.