Skip to content

ci: deduplicate and cleanup actions #1759

ci: deduplicate and cleanup actions

ci: deduplicate and cleanup actions #1759

Workflow file for this run

name: sentry-drift
on:
push:
branches:
- main
- release/**
pull_request:
paths:
- '!**/*.md'
- '!**/class-diagram.svg'
- '.github/workflows/drift.yml'
- '.github/workflows/analyze.yml'
- '.github/actions/flutter-test/**'
- '.github/actions/coverage/**'
- 'dart/**'
- 'drift/**'
jobs:
cancel-previous-workflow:
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # [email protected]
with:
access_token: ${{ github.token }}
build:
name: '${{ matrix.target }} | ${{ matrix.os }} | ${{ matrix.sdk }}'
runs-on: ${{ matrix.os }}-latest
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
target: [macos, linux, windows]
sdk: [stable, beta]
include:
- target: macos
os: macos
- target: linux
os: ubuntu
- target: windows
os: windows
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/flutter-test
with:
directory: drift
- uses: ./.github/actions/coverage
if: matrix.target == 'linux' && matrix.sdk == 'stable'
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: drift
coverage: sentry_drift
min-coverage: 80
analyze:
uses: ./.github/workflows/analyze.yml
with:
package: drift
sdk: flutter