forked from jfri/csslib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/dart-lang/csslib
# Conflicts: # .github/dependabot.yml # .github/workflows/test-package.yml # pubspec.yaml
- Loading branch information
Showing
34 changed files
with
833 additions
and
678 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Dependabot configuration file. | ||
# See https://docs.github.com/en/code-security/dependabot/dependabot-version-updates | ||
version: 2 | ||
|
||
updates: | ||
- package-ecosystem: github-actions | ||
directory: / | ||
schedule: | ||
interval: monthly | ||
labels: | ||
- autosubmit |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# A workflow to close issues where the author hasn't responded to a request for | ||
# more information; see https://github.com/actions/stale. | ||
|
||
name: No Response | ||
|
||
# Run as a daily cron. | ||
on: | ||
schedule: | ||
# Every day at 8am | ||
- cron: '0 8 * * *' | ||
|
||
# All permissions not specified are set to 'none'. | ||
permissions: | ||
issues: write | ||
pull-requests: write | ||
|
||
jobs: | ||
no-response: | ||
runs-on: ubuntu-latest | ||
if: ${{ github.repository_owner == 'dart-lang' }} | ||
steps: | ||
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e | ||
with: | ||
# Don't automatically mark inactive issues+PRs as stale. | ||
days-before-stale: -1 | ||
# Close needs-info issues and PRs after 14 days of inactivity. | ||
days-before-close: 14 | ||
stale-issue-label: "needs-info" | ||
close-issue-message: > | ||
Without additional information we're not able to resolve this issue. | ||
Feel free to add more info or respond to any questions above and we | ||
can reopen the case. Thanks for your contribution! | ||
stale-pr-label: "needs-info" | ||
close-pr-message: > | ||
Without additional information we're not able to resolve this PR. | ||
Feel free to add more info or respond to any questions above. | ||
Thanks for your contribution! |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# A CI configuration to auto-publish pub packages. | ||
|
||
name: Publish | ||
|
||
on: | ||
pull_request: | ||
branches: [ main ] | ||
push: | ||
tags: [ 'v[0-9]+.[0-9]+.[0-9]+' ] | ||
|
||
jobs: | ||
publish: | ||
if: ${{ github.repository_owner == 'dart-lang' }} | ||
uses: dart-lang/ecosystem/.github/workflows/publish.yaml@main | ||
permissions: | ||
id-token: write # Required for authentication using OIDC | ||
pull-requests: write # Required for writing the pull request note |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: Dart CI | ||
|
||
on: | ||
# Run on PRs and pushes to the default branch. | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
schedule: | ||
- cron: "0 0 * * 0" | ||
|
||
env: | ||
PUB_ENVIRONMENT: bot.github | ||
|
||
jobs: | ||
# Check code formatting and static analysis on a single OS (linux) | ||
# against Dart dev. | ||
analyze: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
sdk: [dev] | ||
steps: | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | ||
- uses: dart-lang/setup-dart@fedb1266e91cf51be2fdb382869461a434b920a3 | ||
with: | ||
sdk: ${{ matrix.sdk }} | ||
- id: install | ||
name: Install dependencies | ||
run: dart pub get | ||
- name: Check formatting | ||
run: dart format --output=none --set-exit-if-changed . | ||
if: always() && steps.install.outcome == 'success' | ||
- name: Analyze code | ||
run: dart analyze --fatal-infos | ||
if: always() && steps.install.outcome == 'success' | ||
|
||
# Run tests on a matrix consisting of two dimensions: | ||
# 1. OS: ubuntu-latest, (macos-latest, windows-latest) | ||
# 2. release channel: dev | ||
test: | ||
needs: analyze | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
# Add macos-latest and/or windows-latest if relevant for this package. | ||
os: [ubuntu-latest, windows-latest] | ||
sdk: [3.0, dev] | ||
steps: | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | ||
- uses: dart-lang/setup-dart@fedb1266e91cf51be2fdb382869461a434b920a3 | ||
with: | ||
sdk: ${{ matrix.sdk }} | ||
- id: install | ||
name: Install dependencies | ||
run: dart pub get | ||
- name: Run VM tests | ||
run: dart test --platform vm | ||
if: always() && steps.install.outcome == 'success' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.dart_tool | ||
.packages | ||
pubspec.lock | ||
doc/api/ |
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
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
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
Oops, something went wrong.