Skip to content

Commit

Permalink
Merge pull request #13 from kevin-david/build
Browse files Browse the repository at this point in the history
Add workflow steps for building
  • Loading branch information
kevin-david authored Aug 5, 2024
2 parents d42eca4 + 17bc2c5 commit 4585d16
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ jobs:

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

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -40,7 +40,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1
uses: github/codeql-action/autobuild@v3

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
Expand All @@ -54,4 +54,4 @@ jobs:
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v3
20 changes: 15 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,27 @@ jobs:
name: Test action

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

- name: Run build
run: npm run build

- name: Ensure no pending Git changes
run: |
if [[ -n $(git status --porcelain) ]]; then
echo "There are pending Git changes after running the build. Did you forget to commit the .js files?"
exit 1
fi
- name: Run tests
run: npm run test

- uses: pCYSl5EDgo/cat@1.0.1
name: Cat for GitHub Actions
- name: Load test key
id: get_key
with:
path: __tests__/test_key_b64.txt
run: |
value=$(cat __tests__/test_key_b64.txt)
echo "text=$value" >> $GITHUB_OUTPUT
- uses: ./
name: zipalign and Sign APK
Expand Down

0 comments on commit 4585d16

Please sign in to comment.