Skip to content

CI

CI #33

Workflow file for this run

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-ddc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dart-lang/setup-dart@v1
with:
sdk: 2.19.6
- name: Install dependencies
run: dart pub get --no-precompile
- name: Run tests (DDC)
run: dart run build_runner test -- --file-reporter json:reports/2.19.6/ddc/test-results.json
- name: Upload Unit Test Results
uses: actions/upload-artifact@v2
if: always()
with:
name: ddc-test-results
path: reports/ddc/test-results.json
- name: Report Unit Test Results
uses: dorny/test-reporter@v1
if: always()
with:
name: Unit Test Results (ddc)
path: 'reports/ddc/test-results.json'
reporter: dart-json