Skip to content

chore(deps): bump slackapi/slack-github-action from 1.27.0 to 2.0.0 #306

chore(deps): bump slackapi/slack-github-action from 1.27.0 to 2.0.0

chore(deps): bump slackapi/slack-github-action from 1.27.0 to 2.0.0 #306

Workflow file for this run

name: 'Unit Tests, Coverage & Sonar'
on:
workflow_dispatch:
push:
branches: ['develop', 'main']
pull_request:
branches: ['develop', 'main']
types: ['opened', 'reopened', 'synchronize']
jobs:
build:
name: 'Unit Tests, Coverage & Sonar'
runs-on: ubuntu-latest
if: startsWith(github.event.pull_request.head.ref, 'release/') != true
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Dart
uses: dart-lang/[email protected]
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '11'
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: 'stable'
architecture: x64
- name: Setup .env file
run: |
cat <<EOF > packages/example/.env
WRITE_KEY=${{ secrets.TEST_WRITE_KEY }}
DATA_PLANE_URL=${{ secrets.TEST_DATAPLANE_URL }}
EOF
- name: Install Melos
run: |
dart pub global activate melos 2.9.0
- name: Install dependencies
run: |
melos run setup:ci
- name: Execute unit tests
run: |
melos run test:all
melos run analyze:ci
- name: Combine unit test coverage reports
run: |
mkdir coverage
touch coverage/lcov.info
melos run combine:coverage
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}