Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 20 additions & 13 deletions .github/workflows/build_and_deploy_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,18 @@ on:

jobs:
main:
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source

runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
sdk: [ 2.13.4 ]
sdk: [ 2.18.7 ]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: dart-lang/setup-dart@v1
with:
sdk: ${{ matrix.sdk }}
Expand All @@ -25,20 +30,22 @@ jobs:

- id: build-docs
name: Build Docs
run: pub global activate dartdoc && dartdoc --show-undocumented-categories
if: ${{ matrix.sdk == '2.13.4' }}

- id: deploy-docs
name: Deploy Docs 🚀
uses: JamesIves/github-pages-deploy-action@4.1.1
with:
branch: gh-pages
folder: doc/api # Where the build step stores the dartdoc output
if: ${{ steps.build-docs.outcome == 'success' && github.event_name == 'push' }}
run: dart pub get && dart doc .
if: ${{ matrix.sdk == '2.18.7' }}

# Upload the artifact as required by actions/deploy-pages
- name: Archive Dartdoc Artifact
uses: actions/upload-artifact@v2
uses: actions/upload-pages-artifact@v1.0.7
with:
name: dartdoc
path: doc/api/
if: ${{ steps.build-docs.outcome == 'success' && steps.deploy-docs.outcome == 'skipped' }}

- id: deploy-docs
name: Deploy Docs 🚀
uses: actions/deploy-pages@v1
with:
artifact-name: dartdoc
if: ${{ steps.build-docs.outcome == 'success' && github.event_name == 'push' }}


9 changes: 4 additions & 5 deletions .github/workflows/dart_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@ on:
jobs:
build:
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.sdk == 'dev' }} # Don't fail the workflow if the only errors are in the dev channel
strategy:
fail-fast: false
matrix:
sdk: [stable, dev]
sdk: [stable]
steps:
- uses: actions/checkout@v2
- uses: dart-lang/setup-dart@v1
Expand Down Expand Up @@ -53,8 +52,8 @@ jobs:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
sdk: [ 2.13.4 ]
matrix:
sdk: [ 2.13.4 ]
steps:
- uses: actions/checkout@v2
- uses: dart-lang/setup-dart@v1
Expand Down Expand Up @@ -86,4 +85,4 @@ jobs:
pub run build_runner test -r -- -P concurrent-tests
pub run build_runner test -r -- -P non-concurrent-tests
timeout-minutes: 10
if: ${{ always() && steps.install.outcome == 'success' }}
if: ${{ always() && steps.install.outcome == 'success' }}
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM google/dart:2.13
#Use the new dart image as per: https://hub.docker.com/r/google/dart
FROM dart:2.18.4

# Expose env vars for git ssh access
ARG GIT_SSH_KEY
Expand Down
6 changes: 1 addition & 5 deletions pubspec.next.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: A Dart unit testing library for OverReact components that mimics th
homepage: https://github.com/Workiva/react_testing_library/
documentation: https://workiva.github.io/react_testing_library
environment:
sdk: '>=2.12.0 <3.0.0'
sdk: '>=2.18.4 <3.0.0'

dependencies:
color: ">=2.1.1 <4.0.0"
Expand All @@ -26,7 +26,3 @@ dependency_overrides:
git:
url: https://github.com/workiva/react-dart.git
ref: null-safety-manual
test_html_builder:
git:
url: https://github.com/workiva/test_html_builder.git
ref: v3_wip