Skip to content

Commit 3f780e2

Browse files
authored
Merge pull request #28 from comigor/fix-ci
Update CI
2 parents f4135f6 + 86c8e46 commit 3f780e2

File tree

10 files changed

+40
-250
lines changed

10 files changed

+40
-250
lines changed

.github/actions/check-version-and-changelog/Dockerfile

-9
This file was deleted.

.github/actions/check-version-and-changelog/action.yaml

-20
This file was deleted.

.github/actions/check-version-and-changelog/entrypoint.sh

-65
This file was deleted.

.github/actions/dart-test/Dockerfile

-8
This file was deleted.

.github/actions/dart-test/action.yaml

-36
This file was deleted.

.github/actions/dart-test/entrypoint.sh

-91
This file was deleted.

.github/workflows/pull_request.yaml

+13-8
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,21 @@ jobs:
66
check-version-and-changelog:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@master
10-
- uses: ./.github/actions/check-version-and-changelog
9+
- uses: actions/checkout@v3
10+
- uses: comigor/actions/check-version-and-changelog@master
1111
with:
12-
repo_token: "${{ secrets.GITHUB_TOKEN }}"
13-
base_ref: "${{ github.base_ref }}"
12+
repo_token: ${{ github.token }}
13+
base_ref: ${{ github.base_ref }}
1414
test:
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/checkout@master
18-
- uses: ./.github/actions/dart-test
17+
- uses: actions/checkout@v3
18+
- uses: dart-lang/[email protected]
1919
with:
20-
repo_token: "${{ secrets.GITHUB_TOKEN }}"
21-
exclude_regex: "example"
20+
sdk: 2.12.0
21+
- id: install
22+
name: Install dependencies
23+
run: dart pub get
24+
- name: Test
25+
if: always() && steps.install.outcome == 'success'
26+
run: dart test

.github/workflows/push.yaml

+23-12
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,27 @@ name: CI
99
jobs:
1010
test:
1111
runs-on: ubuntu-latest
12-
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/beta'
1312
steps:
14-
- name: Clone repository
15-
uses: actions/checkout@master
16-
- name: Run tests
17-
uses: comigor/actions/dart-test@master
18-
env:
19-
DTA_EXCLUDE_REGEX: example
13+
- uses: actions/checkout@v3
14+
- uses: dart-lang/[email protected]
15+
with:
16+
sdk: 2.12.0
17+
- id: install
18+
name: Install dependencies
19+
run: dart pub get
20+
- name: Test
21+
if: always() && steps.install.outcome == 'success'
22+
run: dart test
2023
create-tag-and-release:
21-
needs: test
24+
needs:
25+
- test
2226
runs-on: ubuntu-latest
2327
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/beta'
2428
steps:
2529
- uses: actions/checkout@master
2630
- id: check_version_and_changelog
2731
name: Check if version on pubspec.yaml was changed and if there's an entry for this new version on CHANGELOG
28-
uses: ./.github/actions/check-version-and-changelog
32+
uses: comigor/actions/check-version-and-changelog@master
2933
with:
3034
base_ref: "${{ github.ref }}"
3135
- name: Push tag
@@ -46,7 +50,14 @@ jobs:
4650
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/beta'
4751
steps:
4852
- uses: actions/checkout@master
53+
- uses: dart-lang/[email protected]
54+
with:
55+
sdk: stable
56+
- id: install
57+
name: Install dependencies
58+
run: dart pub get
4959
- name: Publish to pub.dev
50-
uses: comigor/actions/pub-publish@master
51-
env:
52-
PUB_CREDENTIALS: ${{ secrets.PUB_CREDENTIALS }}
60+
run: |
61+
mkdir -p ~/.config/dart
62+
echo '${{ secrets.PUB_CREDENTIALS }}' > ~/.config/dart/pub-credentials.json
63+
dart pub publish --force

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# CHANGELOG
22

3+
## 0.4.1
4+
- Update the CI
5+
36
## 0.4.0-nullsafety.0
47
- Migrate to null safety
58

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: fuzzy
2-
version: 0.4.0-nullsafety.0
2+
version: 0.4.1
33

44
description: >
55
Fuzzy search in Dart. Initially a code conversion, subset of Fuse.js.

0 commit comments

Comments
 (0)