FEDX-534 : Migrate contextual_message to GHA #42
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: workiva/[email protected] | |
- uses: actions/checkout@v3 | |
- uses: dart-lang/setup-dart@v1 | |
with: | |
sdk: 2.19.6 | |
- name: Run tests | |
run: dart run dart_dev test | |
- uses: Workiva/[email protected] | |
with: | |
test-reports: /testing/test-reports |