Skip to content

Commit

Permalink
Update GitHub Actions (#269)
Browse files Browse the repository at this point in the history
  • Loading branch information
7h30n3 authored Aug 2, 2024
1 parent d47ef11 commit 515a2c4
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 16 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/build_app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Run shared environment setup steps
uses: ./.github/actions/environment_setup

- name: Setup Java
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
Expand Down Expand Up @@ -58,13 +58,13 @@ jobs:
--dart-define=IS_RELEASE=true
- name: Upload AAB artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: aab
path: build/app/outputs/bundle/release/app-release.aab

- name: Upload APK artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: apk
path: build/app/outputs/flutter-apk/app-release.apk
Expand Down Expand Up @@ -95,7 +95,7 @@ jobs:
build/app/outputs/flutter-apk/app-release.apk
- name: Upload F-Droid APK artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: apk-fdroid
path: build/app/outputs/flutter-apk/app-release.apk
Expand All @@ -113,7 +113,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Run shared environment setup steps
uses: ./.github/actions/environment_setup
Expand Down Expand Up @@ -156,7 +156,7 @@ jobs:
--export-options-plist=$EXPORTOPTIONS_PATH
- name: Upload IPA artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ipa
path: build/ios/ipa/*.ipa
Expand All @@ -175,7 +175,7 @@ jobs:
steps:
- name: Collect artifacts
id: download
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
path: app

Expand All @@ -200,7 +200,7 @@ jobs:
app/OpenStop_${{ github.ref_name }}.ipa
- name: Upload AAB, APK, IPA to draft release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.ref }}
name: OpenStop ${{ github.ref_name }}
Expand All @@ -216,13 +216,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Run shared environment setup steps
uses: ./.github/actions/environment_setup

- name: Setup Pages
uses: actions/configure-pages@v2
uses: actions/configure-pages@v5

- name: Build web
run: >-
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/code_validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Code Validation

on:
push:
branches:
- master
pull_request:

# Allow running this workflow manually from the Actions tab
Expand All @@ -12,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Run shared environment setup steps
uses: ./.github/actions/environment_setup
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/json_validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: JSON Validation

on:
push:
branches:
- master
paths:
- '**/definition.json'
- '**/question_catalog_schema.json'
Expand All @@ -22,10 +24,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.12'

- name: Install jsonschema validator
run: pip install jsonschema
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Tests

on:
push:
branches:
- master
pull_request:

# Allow running this workflow manually from the Actions tab
Expand All @@ -17,7 +19,7 @@ jobs:
# Some app tests rely on this test server
# derived from https://github.com/openstreetmap/openstreetmap-website/blob/master/.github/workflows/docker.yml
- name: Checkout OSM website source
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: openstreetmap/openstreetmap-website
path: osm-website
Expand Down Expand Up @@ -72,7 +74,7 @@ jobs:

# App checkout, setup and final tests
- name: Checkout App source
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: app

Expand Down

0 comments on commit 515a2c4

Please sign in to comment.