Skip to content

Commit

Permalink
Update all GitHub actions dependencies (#153)
Browse files Browse the repository at this point in the history
* Update all GitHub actions dependencies

* Use v1 of NiklasLehnfeld/flutter-version-number-action

* Pass Codecov token to CI action
  • Loading branch information
Abestanis authored Aug 31, 2024
1 parent fa2a425 commit d64c763
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 11 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy_google_play/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ runs:
mv key.properties ${{ github.workspace }}/android/key.properties
- name: πŸ“– Read app version
uses: NiklasLehnfeld/flutter-version-number-action@main
uses: NiklasLehnfeld/flutter-version-number-action@v1
id: read-version
with:
file-path: pubspec.yaml
Expand Down Expand Up @@ -106,21 +106,21 @@ runs:
zip -r ${{ github.workspace }}/symbols.zip ${{ github.workspace }}/build/app/outputs/symbols/
- name: πŸ“ Upload build artifacts (symbols)
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: symbols
path: |
${{ github.workspace }}/symbols.zip
- name: πŸ“ Upload build artifacts (aab)
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: sweyer@${{ steps.read-version.outputs.version-number }}.aab
path: |
${{ github.workspace }}/build/app/outputs/bundle/release/sweyer@${{ steps.read-version.outputs.version-number }}.aab
- name: πŸ“ Upload build artifacts (apk)
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: sweyer@${{ steps.read-version.outputs.version-number }}.apk
path: |
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/sweyer_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
environment: prod
steps:
- name: πŸ“š Git Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: πŸ§ͺ Test Sweyer
if: ${{ github.event.inputs.skip-tests == 'false' }}
Expand All @@ -23,7 +23,9 @@ jobs:

- name: β˜‚ Upload Code Coverage
if: ${{ github.event.inputs.skip-tests == 'false' }}
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

- name: πŸš€πŸ€– Bundle and deploy to Google Play
uses: ./.github/workflows/deploy_google_play
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: πŸ“š Git Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: πŸ§ͺ Test Sweyer
uses: ./.github/workflows/test
with:
testing_arguments: --coverage

- name: β˜‚ Upload Code Coverage
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
6 changes: 3 additions & 3 deletions .github/workflows/update_goldens.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,21 @@ jobs:
contents: write
steps:
- name: πŸ“š Git Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: πŸ§ͺ Test Sweyer
uses: ./.github/workflows/test
with:
testing_arguments: --update-goldens

- name: πŸ“ Save updated Golden test artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: golden-test-updated
path: test/golden/goldens

- name: πŸ’Ύ Commit updated Golden test artifacts
uses: stefanzweifel/git-auto-commit-action@v4
uses: stefanzweifel/git-auto-commit-action@v5
if: github.event.inputs.commit == 'true'
with:
commit_message: πŸ€– Update Golden test artifacts πŸ€–

0 comments on commit d64c763

Please sign in to comment.