Skip to content

Commit 4392749

Browse files
authored
Merge pull request #15 from pitabwire/feature/GH-14
migrate to firehorse for publishing
2 parents ef6819f + d5f7cfd commit 4392749

File tree

8 files changed

+49
-30
lines changed

8 files changed

+49
-30
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# A CI configuration to write comments on PRs.
2+
3+
name: Comment on the pull request
4+
5+
on:
6+
workflow_run:
7+
workflows:
8+
- Publish
9+
types:
10+
- completed
11+
12+
jobs:
13+
upload:
14+
permissions:
15+
pull-requests: write
16+
uses: dart-lang/ecosystem/.github/workflows/post_summaries.yaml@main

.github/workflows/publish.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
# A CI configuration to auto-publish pub packages.
3+
4+
name: Publish
5+
6+
on:
7+
push:
8+
tags: [ 'v[0-9]+.[0-9]+.[0-9]+' ]
9+
10+
jobs:
11+
publish:
12+
permissions:
13+
id-token: write # Required for authentication using OIDC
14+
uses: dart-lang/ecosystem/.github/workflows/publish.yaml@v1
15+
with:
16+
write-comments: false

.github/workflows/publish.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
name: Test all code changes
22

3-
on: [push]
3+
on: [ push ]
44

55
jobs:
66

77
build:
8-
8+
strategy:
9+
matrix:
10+
dart_version: [ 2.14,2.15,2.16,2.17,2.18,2.19,3.0,3.1,3.2 ]
911
runs-on: ubuntu-latest
1012
container:
11-
image: google/dart:latest
13+
image: dart:${{ matrix.dart_version }}
1214
steps:
1315
- name: Checkout code for testing
1416
uses: actions/checkout@v4
1517
- name: Run all tests in project
16-
run: dart test test/
18+
run: dart test test/

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ repos:
1111
- id: format-code
1212
name: Flutter format code
1313
always_run: true
14-
entry: flutter
15-
args: ["format", "."]
14+
entry: dart
15+
args: ["format", "--fix", "."]
1616
language: system
1717
types: [bash]
1818
- id: test-code

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 1.1.0
2+
3+
- migrate to dart ecosystem publishing mechanisms @pitabwire (#14)
4+
- introduce matrix testing for all supported versions @pitabwire (#14)
5+
- cleanup precommit file
16

27
## 1.0.11
38

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Globally Unique ID Generator
22

3+
[![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)
4+
35
> This project is a dart implementation of the Go Lang library found here: [https://github.com/rs/xid](https://github.com/rs/xid)
46
57
__ReadMe is from that project (with some modifications for dart).__

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ description: |
33
Xid is a globally unique id generator. Xids are small, fast to generate, sortable,
44
compact URL-safe string with no configuration or central generator server.
55
6-
version: 1.0.12
6+
version: 1.1.0
77
repository: https://github.com/pitabwire/xid
88
environment:
9-
sdk: '>=2.14.4 <3.0.0'
9+
sdk: ^2.14.4
1010

1111
dev_dependencies:
1212
lints: ^1.0.0

0 commit comments

Comments
 (0)