mirror of
https://github.com/tiennm99/loto.git
synced 2026-10-12 20:15:56 +00:00
ci: add web lint/check/verify-pwa steps, android release keystore cleanup
This commit is contained in:
1 parent
79b26a5af3
commit
57ec6bfbcf
2 files changed
+20
No files matched your search
@@ -76,6 +76,14 @@ jobs:
|
||||
LOTO_KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
|
||||
run: ./gradlew :app:bundleRelease :app:assembleRelease
|
||||
|
||||
# L10: the decoded keystore has no real exposure on this ephemeral
|
||||
# runner (nothing archives the workspace), but removing it explicitly
|
||||
# closes the class of mistake where a future step does. if: always()
|
||||
# so it runs even if the build step above fails.
|
||||
- name: Remove decoded keystore
|
||||
if: always()
|
||||
run: rm -f "$GITHUB_WORKSPACE/keystore.p12"
|
||||
|
||||
- name: Upload to GitHub Release
|
||||
uses: softprops/action-gh-release@3d0d9888cb7fd7b750713d6e236d1fcb99157228 # v3.0.2
|
||||
with:
|
||||
|
||||
@@ -46,6 +46,10 @@ jobs:
|
||||
with:
|
||||
persist-credentials: false
|
||||
- uses: ./.github/actions/setup-web
|
||||
- run: npm run lint
|
||||
working-directory: web
|
||||
- run: npm run check
|
||||
working-directory: web
|
||||
- run: npm test
|
||||
working-directory: web
|
||||
|
||||
@@ -60,10 +64,12 @@ jobs:
|
||||
- profile: root
|
||||
script: build
|
||||
artifact: web-build
|
||||
buildProfile: ''
|
||||
# GitHub Pages serves under /loto.
|
||||
- profile: gh
|
||||
script: 'build:gh'
|
||||
artifact: web-build-gh
|
||||
buildProfile: gh
|
||||
name: build (${{ matrix.profile }})
|
||||
steps:
|
||||
- uses: actions/checkout@v7
|
||||
@@ -72,6 +78,12 @@ jobs:
|
||||
- uses: ./.github/actions/setup-web
|
||||
- run: npm run ${{ matrix.script }}
|
||||
working-directory: web
|
||||
# Fails the build if the SW registration wiring or the audio precache
|
||||
# base-path prefixing regresses — see scripts/verify-pwa-build.mjs.
|
||||
- run: npm run verify:pwa
|
||||
working-directory: web
|
||||
env:
|
||||
BUILD_PROFILE: ${{ matrix.buildProfile }}
|
||||
- uses: actions/upload-artifact@v7
|
||||
with:
|
||||
name: ${{ matrix.artifact }}
|
||||
|
||||
Reference in new issue
Block a user