Implement module packing using ncc
#50
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Test" | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
name: Test action | |
steps: | |
- uses: actions/checkout@v4 | |
name: Checkout | |
- name: Install dependencies | |
run: | | |
npm install | |
npm install -g @vercel/ncc | |
- name: Build | |
run: npm run build | |
- name: eslint | |
run: npx eslint | |
- name: Run tests | |
run: npm run test | |
- name: Load test key | |
id: get_key | |
run: | | |
value=$(cat src/tests/test_key_b64.txt) | |
echo "text=$value" >> $GITHUB_OUTPUT | |
- uses: ./ | |
name: zipalign and Sign APK | |
with: | |
releaseDirectory: src/tests/apk-zip | |
signingKeyBase64: ${{ steps.get_key.outputs.text }} | |
alias: test_key | |
keyStorePassword: android | |
keyPassword: android | |
zipAlign: true | |
- uses: ./ | |
name: Sign APK | |
with: | |
releaseDirectory: src/tests/apk | |
signingKeyBase64: ${{ steps.get_key.outputs.text }} | |
alias: test_key | |
keyStorePassword: android | |
keyPassword: android | |
- uses: ./ | |
name: Sign AAB | |
with: | |
releaseDirectory: src/tests/aab | |
signingKeyBase64: ${{ steps.get_key.outputs.text }} | |
alias: test_key | |
keyStorePassword: android | |
keyPassword: android |