update the CI configuration; prep for publishing (#44)
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
index 430a85e..2144819 100644
--- a/.github/dependabot.yml
+++ b/.github/dependabot.yml
@@ -1,11 +1,8 @@
-# Set update schedule for GitHub Actions
-# See https://docs.github.com/en/free-pro-team@latest/github/administering-a-repository/keeping-your-actions-up-to-date-with-dependabot
-
+# Dependabot configuration file.
version: 2
-updates:
-- package-ecosystem: "github-actions"
- directory: "/"
- schedule:
- # Check for updates to GitHub Actions every weekday
- interval: "daily"
+updates:
+ - package-ecosystem: "github-actions"
+ directory: "/"
+ schedule:
+ interval: "monthly"
diff --git a/.github/workflows/test-package.yml b/.github/workflows/test-package.yml
index 79d8757..38089b6 100644
--- a/.github/workflows/test-package.yml
+++ b/.github/workflows/test-package.yml
@@ -11,6 +11,7 @@
env:
PUB_ENVIRONMENT: bot.github
+
permissions: read-all
jobs:
@@ -23,8 +24,8 @@
matrix:
sdk: [dev]
steps:
- - uses: actions/checkout@v3
- - uses: dart-lang/setup-dart@v1
+ - uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
+ - uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d
with:
sdk: ${{ matrix.sdk }}
- id: install
@@ -50,8 +51,8 @@
os: [ubuntu-latest]
sdk: [2.12.0, dev]
steps:
- - uses: actions/checkout@v3
- - uses: dart-lang/setup-dart@v1
+ - uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
+ - uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d
with:
sdk: ${{ matrix.sdk }}
- id: install
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 9604b3b..abe849a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,7 +1,8 @@
-## 2.0.1-dev
+## 2.0.1
* Populate the pubspec `repository` field.
* Migrate to `package:lints`.
+* Update the package's markdown badges.
## 2.0.0
diff --git a/README.md b/README.md
index d201004..94422ea 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,12 @@
+[![Dart CI](https://github.com/dart-lang/test_descriptor/actions/workflows/test-package.yml/badge.svg)](https://github.com/dart-lang/test_descriptor/actions/workflows/test-package.yml)
+[![pub package](https://img.shields.io/pub/v/test_descriptor.svg)](https://pub.dev/packages/test_descriptor)
+[![package publisher](https://img.shields.io/pub/publisher/test_descriptor.svg)](https://pub.dev/packages/test_descriptor/publisher)
+
The `test_descriptor` package provides a convenient, easy-to-read API for
defining and verifying directory structures in tests.
+## Usage
+
We recommend that you import this library with the `d` prefix. The
[`d.dir()`][dir] and [`d.file()`][file] functions are the main entrypoints. They
define a filesystem structure that can be created using
diff --git a/pubspec.yaml b/pubspec.yaml
index 9fa3dc3..0f3836c 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,5 +1,5 @@
name: test_descriptor
-version: 2.0.1-dev
+version: 2.0.1
description: An API for defining and verifying directory structures.
repository: https://github.com/dart-lang/test_descriptor