Skip to content

🔀 Merge pull request #356 from COS301-SE-2024/dev/feat/achiements #348

🔀 Merge pull request #356 from COS301-SE-2024/dev/feat/achiements

🔀 Merge pull request #356 from COS301-SE-2024/dev/feat/achiements #348

Workflow file for this run

name: CICD
on:
push:
branches:
- main
- development
- 'dev/test/**'
paths:
- beakpeek/**
pull_request:
branches:
- main
- development
paths:
- beakpeek/**
workflow_dispatch:
defaults:
run:
working-directory: ./beakpeek
jobs:
Run-Flutter-Tests:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
- name: Cache Flutter dependancies
uses: actions/cache@v3
with:
path: |
~/.pub-cache
~/.flutter
keys: ${{ runner.os }}-pub-${{ hashFiles('**/pubspec.yaml') }}
restore-keys: |
${{ runner.os }}-pub-${{ hashFiles('**/pubspec.yaml') }}
- name: Install Flutter dependecies
run: flutter pub get
- name: Run Flutter tests
run: flutter test --coverage
- name: Upload Flutter Coverage to Codecov
uses: codecov/codecov-action@v3
with:
files: ./beakpeek/coverage/lcov.info
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
verbose: true
name: Flutter Coverage