FEDX-534 : Migrate contextual_message to GHA #36
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
- _integration/**/* | |
- test_consume_workiva/** | |
tags: | |
- '**' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dart-lang/setup-dart@v1 | |
with: | |
sdk: 2.19.6 | |
- name: Print Dart SDK version | |
run: dart --version | |
- name: Install dependencies | |
run: dart pub get | |
- name: Validate code | |
run: dart run dependency_validator | |
- name: Check format | |
run: dart run dart_dev format --check | |
- name: Analyze code | |
run: dart analyze | |
- name: Build generated files | |
run: dart run build_runner build --delete-conflicting-outputs | |
unit-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dart-lang/setup-dart@v1 | |
with: | |
sdk: 2.19.6 | |
- name: Run tests | |
run: dart run dart_dev test | |
semver-audit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Run merge_branch.sh with master | |
run: ./merge_branch.sh master | |
- name: Dart pub global activate semver_audit | |
run: dart pub global activate --hosted-url https://pub.workiva.org semver_audit ^2.0.3 | |
- name: Dart pub get with timeout | |
run: timeout 5m dart pub get | |
- name: Run semver_audit report | |
run: semver_audit report |