Skip to content
This repository was archived by the owner on Oct 2, 2024. It is now read-only.

Commit ae7f5f8

Browse files
authored
Merge pull request #402 from comigor/update-workflows
Update workflows
2 parents 45dbe2b + 22e44c6 commit ae7f5f8

4 files changed

Lines changed: 51 additions & 24 deletions

File tree

.github/workflows/pull_request.yaml

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,34 +15,38 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- uses: actions/checkout@v2
18-
- uses: dart-lang/setup-dart@v1
18+
- uses: dart-lang/setup-dart@v1.3
1919
with:
20-
sdk: 2.18.0
20+
sdk: stable
2121
- id: install
2222
name: Install dependencies
2323
run: dart pub get
2424
- name: Check formatting
2525
if: always() && steps.install.outcome == 'success'
2626
run: dart format --set-exit-if-changed .
27-
- name: Run analyzer and annotate
28-
if: always() && steps.install.outcome == 'success'
29-
# https://github.com/kitek/dartanalyzer-annotations-action was too outdated and seems does not have any support
30-
run: dart analyze --fatal-infos
3127
test:
3228
runs-on: ubuntu-latest
3329
steps:
3430
- uses: actions/checkout@v2
35-
- uses: dart-lang/setup-dart@v1
31+
- uses: dart-lang/setup-dart@v1.3
3632
with:
37-
sdk: 2.18.0
33+
sdk: stable
3834
- id: install
3935
name: Install dependencies
4036
run: dart pub get
4137
- name: Test
4238
if: always() && steps.install.outcome == 'success'
43-
run: dart run test --file-reporter='json:test-report.json'
44-
continue-on-error: true
45-
- name: Annotate with test errors
46-
uses: rodrigost23/dart-test-annotations@v1.0
39+
run: dart test
40+
analyze:
41+
runs-on: ubuntu-latest
42+
steps:
43+
- uses: actions/checkout@v2
44+
- uses: dart-lang/setup-dart@v1.3
4745
with:
48-
path: test-report.json
46+
sdk: stable
47+
- id: install
48+
name: Install dependencies
49+
run: dart pub get
50+
- name: Analyze
51+
if: always() && steps.install.outcome == 'success'
52+
run: dart analyze

.github/workflows/push.yaml

Lines changed: 29 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v2
14-
- uses: dart-lang/setup-dart@v1
14+
- uses: dart-lang/setup-dart@v1.3
1515
with:
16-
sdk: 2.18.0
16+
sdk: stable
1717
- id: install
1818
name: Install dependencies
1919
run: dart pub get
@@ -24,19 +24,33 @@ jobs:
2424
runs-on: ubuntu-latest
2525
steps:
2626
- uses: actions/checkout@v2
27-
- uses: dart-lang/setup-dart@v1
27+
- uses: dart-lang/setup-dart@v1.3
2828
with:
29-
sdk: 2.18.0
29+
sdk: stable
3030
- id: install
3131
name: Install dependencies
3232
run: dart pub get
3333
- name: Test
3434
if: always() && steps.install.outcome == 'success'
35-
run: dart run test
35+
run: dart test
36+
analyze:
37+
runs-on: ubuntu-latest
38+
steps:
39+
- uses: actions/checkout@v2
40+
- uses: dart-lang/setup-dart@v1.3
41+
with:
42+
sdk: stable
43+
- id: install
44+
name: Install dependencies
45+
run: dart pub get
46+
- name: Analyze
47+
if: always() && steps.install.outcome == 'success'
48+
run: dart analyze
3649
create-tag-and-release:
3750
needs:
3851
- lint
3952
- test
53+
- analyze
4054
runs-on: ubuntu-latest
4155
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/beta'
4256
steps:
@@ -64,9 +78,14 @@ jobs:
6478
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/beta'
6579
steps:
6680
- uses: actions/checkout@master
67-
- name: Publish to pub.dev
68-
uses: comigor/actions/pub-publish@master
69-
env:
70-
PUB_CREDENTIALS: ${{ secrets.PUB_CREDENTIALS }}
81+
- uses: dart-lang/setup-dart@v1.3
7182
with:
72-
pub_credentials: ${{ secrets.PUB_CREDENTIALS }}
83+
sdk: stable
84+
- id: install
85+
name: Install dependencies
86+
run: dart pub get
87+
- name: Publish to pub.dev
88+
run: |
89+
mkdir -p ~/.pub-cache/credentials.json
90+
echo "${{ secrets.PUB_CREDENTIALS }}" > ~/.config/dart/pub-credentials.json
91+
echo y | dart pub publish

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# CHANGELOG
22

3+
## 7.10.0-beta.1
4+
5+
- update workflows to use official community actions
6+
37
## 7.10.0-beta
48

59
- package update

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: artemis
2-
version: 7.10.0-beta
2+
version: 7.10.0-beta.1
33

44
description: Build dart types from GraphQL schemas and queries (using Introspection Query).
55
homepage: https://github.com/comigor/artemis

0 commit comments

Comments
 (0)