Skip to content

Commit

Permalink
ci: fix image name, update commands
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen-meijer committed Sep 24, 2024
1 parent 4ff4489 commit e6b56e3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,30 @@ jobs:
kana_kit:
runs-on: ubuntu-latest
container:
image: google/dart:3.5.0
image: dart:3.5.0
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install dependencies
run: pub get
run: dart pub get

- name: Format
run: dartfmt --dry-run --set-exit-if-changed .
run: dart format --dry-run --set-exit-if-changed .

- name: Analyze
run: dartanalyzer --fatal-infos --fatal-warnings lib test
run: dart analyze --fatal-infos --fatal-warnings lib test

- name: Test
run: pub run test_coverage
run: dart run test_coverage

- name: Dry run publish
run: |
echo "Copy credentials"
mkdir -p ~/.pub-cache
echo "$CREDENTIAL_JSON" > ~/.pub-cache/credentials.json
echo "Run pub publish --dry-run"
pub publish --dry-run
dart pub publish --dry-run
env:
CREDENTIAL_JSON: ${{ secrets.CREDENTIAL_JSON }}

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/draft_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,27 @@ jobs:
update_release_draft:
runs-on: ubuntu-latest
container:
image: google/dart:3.5.0
image: dart:3.5.0
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install dependencies
run: pub get
run: dart pub get

- name: Add pub executables to path
run: echo "::add-path::$HOME/.pub-cache/bin"

- name: Set pub version in env
run: |
pub global activate pubspec_version
dart pub global activate pubspec_version
echo "Current version is: $(pubver get)"
echo "::set-env name=RELEASE_VERSION::$(pubver get)"
- name: Create release draft
uses: release-drafter/release-drafter@v5
with:
publish: false
dart publish: false
name: v${{ env.RELEASE_VERSION }}
version: ${{ env.RELEASE_VERSION }}
tag: ${{ env.RELEASE_VERSION }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish_to_pub.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
publish:
runs-on: ubuntu-latest
container:
image: google/dart:3.5.0
image: dart:3.5.0
steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -21,6 +21,6 @@ jobs:
mkdir -p ~/.pub-cache
echo "$CREDENTIAL_JSON" > ~/.pub-cache/credentials.json
echo "Run pub publish --force"
pub publish --force
dart pub publish --force
env:
CREDENTIAL_JSON: ${{ secrets.CREDENTIAL_JSON }}

0 comments on commit e6b56e3

Please sign in to comment.