Skip to content
This repository was archived by the owner on Oct 2, 2024. It is now read-only.
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
30 changes: 17 additions & 13 deletions .github/workflows/pull_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,34 +15,38 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: dart-lang/setup-dart@v1
- uses: dart-lang/setup-dart@v1.3
with:
sdk: 2.18.0
sdk: stable
- id: install
name: Install dependencies
run: dart pub get
- name: Check formatting
if: always() && steps.install.outcome == 'success'
run: dart format --set-exit-if-changed .
- name: Run analyzer and annotate
if: always() && steps.install.outcome == 'success'
# https://github.com/kitek/dartanalyzer-annotations-action was too outdated and seems does not have any support
run: dart analyze --fatal-infos
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: dart-lang/setup-dart@v1
- uses: dart-lang/setup-dart@v1.3
with:
sdk: 2.18.0
sdk: stable
- id: install
name: Install dependencies
run: dart pub get
- name: Test
if: always() && steps.install.outcome == 'success'
run: dart run test --file-reporter='json:test-report.json'
continue-on-error: true
- name: Annotate with test errors
uses: rodrigost23/dart-test-annotations@v1.0
run: dart test
analyze:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: dart-lang/setup-dart@v1.3
with:
path: test-report.json
sdk: stable
- id: install
name: Install dependencies
run: dart pub get
- name: Analyze
if: always() && steps.install.outcome == 'success'
run: dart analyze
39 changes: 29 additions & 10 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: dart-lang/setup-dart@v1
- uses: dart-lang/setup-dart@v1.3
with:
sdk: 2.18.0
sdk: stable
- id: install
name: Install dependencies
run: dart pub get
Expand All @@ -24,19 +24,33 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: dart-lang/setup-dart@v1
- uses: dart-lang/setup-dart@v1.3
with:
sdk: 2.18.0
sdk: stable
- id: install
name: Install dependencies
run: dart pub get
- name: Test
if: always() && steps.install.outcome == 'success'
run: dart run test
run: dart test
analyze:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: dart-lang/setup-dart@v1.3
with:
sdk: stable
- id: install
name: Install dependencies
run: dart pub get
- name: Analyze
if: always() && steps.install.outcome == 'success'
run: dart analyze
create-tag-and-release:
needs:
- lint
- test
- analyze
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/beta'
steps:
Expand Down Expand Up @@ -64,9 +78,14 @@ jobs:
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/beta'
steps:
- uses: actions/checkout@master
- name: Publish to pub.dev
uses: comigor/actions/pub-publish@master
env:
PUB_CREDENTIALS: ${{ secrets.PUB_CREDENTIALS }}
- uses: dart-lang/setup-dart@v1.3
with:
pub_credentials: ${{ secrets.PUB_CREDENTIALS }}
sdk: stable
- id: install
name: Install dependencies
run: dart pub get
- name: Publish to pub.dev
run: |
mkdir -p ~/.pub-cache/credentials.json
echo "${{ secrets.PUB_CREDENTIALS }}" > ~/.config/dart/pub-credentials.json
echo y | dart pub publish
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## 7.10.0-beta.1

- update workflows to use official community actions

## 7.10.0-beta

- package update
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: artemis
version: 7.10.0-beta
version: 7.10.0-beta.1

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