+
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
16 changes: 16 additions & 0 deletions .github/workflows/post_summaries.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# A CI configuration to write comments on PRs.

name: Comment on the pull request

on:
workflow_run:
workflows:
- Publish
types:
- completed

jobs:
upload:
permissions:
pull-requests: write
uses: dart-lang/ecosystem/.github/workflows/post_summaries.yaml@main
16 changes: 16 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

# A CI configuration to auto-publish pub packages.

name: Publish

on:
push:
tags: [ 'v[0-9]+.[0-9]+.[0-9]+' ]

jobs:
publish:
permissions:
id-token: write # Required for authentication using OIDC
uses: dart-lang/ecosystem/.github/workflows/publish.yaml@v1
with:
write-comments: false
22 changes: 0 additions & 22 deletions .github/workflows/publish.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
name: Test all code changes

on: [push]
on: [ push ]

jobs:

build:

strategy:
matrix:
dart_version: [ 2.14,2.15,2.16,2.17,2.18,2.19,3.0,3.1,3.2 ]
runs-on: ubuntu-latest
container:
image: google/dart:latest
image: dart:${{ matrix.dart_version }}
steps:
- name: Checkout code for testing
uses: actions/checkout@v4
- name: Run all tests in project
run: dart test test/
run: dart test test/
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ repos:
- id: format-code
name: Flutter format code
always_run: true
entry: flutter
args: ["format", "."]
entry: dart
args: ["format", "--fix", "."]
language: system
types: [bash]
- id: test-code
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 1.1.0

- migrate to dart ecosystem publishing mechanisms @pitabwire (#14)
- introduce matrix testing for all supported versions @pitabwire (#14)
- cleanup precommit file

## 1.0.11

Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Globally Unique ID Generator

[![Build Status](https://github.com/pitabwire/xid/actions/workflows/run_tests.yaml/badge.svg?branch=main)](https://github.com/pitabwire/xid/actions/workflows/run_tests.yaml)

> This project is a dart implementation of the Go Lang library found here: [https://github.com/rs/xid](https://github.com/rs/xid)

__ReadMe is from that project (with some modifications for dart).__
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ description: |
Xid is a globally unique id generator. Xids are small, fast to generate, sortable,
compact URL-safe string with no configuration or central generator server.

version: 1.0.12
version: 1.1.0
repository: https://github.com/pitabwire/xid
environment:
sdk: '>=2.14.4 <3.0.0'
sdk: ^2.14.4

dev_dependencies:
lints: ^1.0.0
Expand Down
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载