Skip to content

Commit 093f239

Browse files
committed
Merge package:markdown into the tools monorepo
2 parents 223daf5 + 254fece commit 093f239

File tree

205 files changed

+46242
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

205 files changed

+46242
-0
lines changed

pkgs/markdown/.github/dependabot.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Dependabot configuration file.
2+
version: 2
3+
4+
updates:
5+
- package-ecosystem: github-actions
6+
directory: /
7+
schedule:
8+
interval: monthly
9+
labels:
10+
- autosubmit
11+
groups:
12+
github-actions:
13+
patterns:
14+
- "*"
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Run against all markdown files in latest version of packages on pub.dev to
2+
# see if any can provoke a crash
3+
4+
name: Crash Tests
5+
6+
on:
7+
schedule:
8+
# “At 00:00 (UTC) on Sunday.”
9+
- cron: '0 0 * * 0'
10+
11+
jobs:
12+
crash-test:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
16+
- uses: dart-lang/setup-dart@e630b99d28a3b71860378cafdc2a067c71107f94
17+
- name: Install dependencies
18+
run: dart pub get
19+
- name: Run crash_test.dart
20+
run: dart test -P crash_test test/crash_test.dart
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# Run a smoke test against package:flutter_markdown.
2+
3+
name: flutter_markdown
4+
5+
on:
6+
schedule:
7+
# “At 00:00 (UTC) on Sunday.”
8+
- cron: '0 0 * * 0'
9+
push:
10+
branches: [ master ]
11+
pull_request:
12+
branches: [ master ]
13+
14+
permissions: read-all
15+
16+
jobs:
17+
smoke-test:
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- name: clone dart-lang/markdown
22+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
23+
with:
24+
repository: dart-lang/markdown
25+
path: markdown
26+
27+
- name: clone flutter/packages
28+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
29+
with:
30+
repository: flutter/packages
31+
path: flutter_packages
32+
33+
# Install the Flutter SDK using the subosito/flutter-action GitHub action.
34+
- name: install the flutter sdk
35+
uses: subosito/flutter-action@74af56c5ed2697ba4621264652728e8d217e53d3
36+
with:
37+
channel: 'beta'
38+
39+
- name: flutter --version
40+
run: flutter --version
41+
42+
- name: create pubspec_overrides.yaml
43+
working-directory: flutter_packages/packages/flutter_markdown
44+
run: |
45+
echo "dependency_overrides:" > pubspec_overrides.yaml
46+
echo " markdown:" >> pubspec_overrides.yaml
47+
echo " path: ../../../markdown" >> pubspec_overrides.yaml
48+
49+
- name: flutter pub get
50+
working-directory: flutter_packages/packages/flutter_markdown
51+
run: flutter pub get
52+
53+
- name: flutter analyze package:flutter_markdown
54+
working-directory: flutter_packages/packages/flutter_markdown
55+
run: flutter analyze
56+
57+
- name: flutter test package:flutter_markdown
58+
working-directory: flutter_packages/packages/flutter_markdown
59+
run: flutter test
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# A workflow to close issues where the author hasn't responded to a request for
2+
# more information; see https://github.com/actions/stale.
3+
4+
name: No Response
5+
6+
# Run as a daily cron.
7+
on:
8+
schedule:
9+
# Every day at 8am
10+
- cron: '0 8 * * *'
11+
12+
# All permissions not specified are set to 'none'.
13+
permissions:
14+
issues: write
15+
pull-requests: write
16+
17+
jobs:
18+
no-response:
19+
runs-on: ubuntu-latest
20+
if: ${{ github.repository_owner == 'dart-lang' }}
21+
steps:
22+
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e
23+
with:
24+
days-before-stale: -1
25+
days-before-close: 14
26+
stale-issue-label: "needs-info"
27+
close-issue-message: >
28+
Without additional information we're not able to resolve this issue.
29+
Feel free to add more info or respond to any questions above and we
30+
can reopen the case. Thanks for your contribution!
31+
stale-pr-label: "needs-info"
32+
close-pr-message: >
33+
Without additional information we're not able to resolve this PR.
34+
Feel free to add more info or respond to any questions above.
35+
Thanks for your contribution!
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# A CI configuration to auto-publish pub packages.
2+
3+
name: Publish
4+
5+
on:
6+
pull_request:
7+
branches: [ master ]
8+
push:
9+
tags: [ 'v[0-9]+.[0-9]+.[0-9]+*' ]
10+
11+
jobs:
12+
publish:
13+
if: ${{ github.repository_owner == 'dart-lang' }}
14+
uses: dart-lang/ecosystem/.github/workflows/publish.yaml@main
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
name: Dart CI
2+
3+
on:
4+
# Run on PRs and pushes to the default branch.
5+
push:
6+
branches: [ master ]
7+
pull_request:
8+
branches: [ master ]
9+
schedule:
10+
- cron: "0 0 * * 0"
11+
12+
env:
13+
PUB_ENVIRONMENT: bot.github
14+
15+
jobs:
16+
# Check code formatting and static analysis on a single OS (linux)
17+
# against Dart dev.
18+
analyze:
19+
runs-on: ubuntu-latest
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
sdk: [dev]
24+
steps:
25+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
26+
- uses: dart-lang/setup-dart@e630b99d28a3b71860378cafdc2a067c71107f94
27+
with:
28+
sdk: ${{ matrix.sdk }}
29+
- id: install
30+
name: Install dependencies
31+
run: dart pub get
32+
- name: Check formatting
33+
run: dart format --output=none --set-exit-if-changed .
34+
if: always() && steps.install.outcome == 'success'
35+
- name: Analyze code
36+
run: dart analyze --fatal-infos
37+
if: always() && steps.install.outcome == 'success'
38+
39+
# Run tests on a matrix consisting of two dimensions:
40+
# 1. OS: ubuntu-latest, (macos-latest, windows-latest)
41+
# 2. release channel: dev
42+
test:
43+
needs: analyze
44+
runs-on: ${{ matrix.os }}
45+
strategy:
46+
fail-fast: false
47+
matrix:
48+
# Add macos-latest and/or windows-latest if relevant for this package.
49+
os: [ubuntu-latest]
50+
sdk: [3.2, dev]
51+
steps:
52+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
53+
- uses: dart-lang/setup-dart@e630b99d28a3b71860378cafdc2a067c71107f94
54+
with:
55+
sdk: ${{ matrix.sdk }}
56+
- id: install
57+
name: Install dependencies
58+
run: dart pub get
59+
- name: Run VM tests
60+
run: dart test --platform vm
61+
if: always() && steps.install.outcome == 'success'
62+
63+
coverage:
64+
needs: test
65+
runs-on: ubuntu-latest
66+
steps:
67+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
68+
- uses: dart-lang/setup-dart@e630b99d28a3b71860378cafdc2a067c71107f94
69+
with:
70+
sdk: dev
71+
- name: Install dependencies
72+
run: dart pub get
73+
- name: Install coverage
74+
run: dart pub global activate coverage
75+
- name: Collect and report coverage
76+
run: dart pub global run coverage:test_with_coverage
77+
- name: Upload coverage
78+
uses: coverallsapp/github-action@master
79+
with:
80+
github-token: ${{ secrets.GITHUB_TOKEN }}
81+
path-to-lcov: coverage/lcov.info

pkgs/markdown/.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.dart_tool
2+
.packages
3+
.pub
4+
pubspec.lock
5+
doc/

pkgs/markdown/AUTHORS

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Below is a list of people and organizations that have contributed
2+
# to the Dart project. Names should be added to the list like so:
3+
#
4+
# Name/Organization <email address>
5+
6+
Google Inc.
7+
8+
David Peek <[email protected]>
9+
Daniel Schubert <[email protected]>
10+
Jirka Daněk <[email protected]>
11+
Seth Westphal <[email protected]>
12+
Tim Maffett <[email protected]>
13+

0 commit comments

Comments
 (0)