yubioath-flutter/.github/workflows/codeql-analysis.yml

78 lines
1.8 KiB
YAML
Raw Normal View History

2023-01-31 13:25:37 +03:00
name: "CodeQL"
on:
push:
2023-02-06 10:17:09 +03:00
paths:
- "android/**"
- "helper/**"
2023-02-06 10:30:37 +03:00
pull_request:
2023-02-06 10:06:44 +03:00
paths:
- "android/**"
- "helper/**"
2023-01-31 13:25:37 +03:00
schedule:
- cron: '0 11 * * 3'
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
2023-01-31 14:02:19 +03:00
language: [ 'python', 'kotlin' ]
2023-01-31 13:25:37 +03:00
steps:
2023-01-31 13:38:15 +03:00
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
setup-python-dependencies: false
2023-01-31 13:25:37 +03:00
- name: set up JDK 11
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '11'
- name: Install Flutter
uses: subosito/flutter-action@v2
with:
channel: 'stable'
2023-06-21 10:51:01 +03:00
flutter-version: '3.10.5'
2023-01-31 13:25:37 +03:00
- run: |
flutter config
flutter --version
- uses: actions/checkout@v3
with:
path: 'app'
2023-03-01 12:38:30 +03:00
- name: Run flutter tests
2023-03-01 12:32:32 +03:00
run: |
flutter test
flutter analyze
working-directory: ./app
2023-01-31 13:25:37 +03:00
- if: matrix.language == 'kotlin'
name: Build the App
run: android/scripts/build.sh
env:
YUBIOATH_STORE_BASE64: ${{ secrets.YUBIOATH_STORE_BASE64 }}
YUBIOATH_KEY_ALIAS: ${{ secrets.YUBIOATH_KEY_ALIAS }}
YUBIOATH_KEY_PASSWORD: ${{ secrets.YUBIOATH_KEY_PASSWORD }}
YUBIOATH_STORE_PASSWORD: ${{ secrets.YUBIOATH_STORE_PASSWORD }}
working-directory: ./app
2023-01-31 14:02:19 +03:00
2023-01-31 13:25:37 +03:00
- if: matrix.language == 'python'
name: autobuild
2023-01-31 14:02:19 +03:00
uses: github/codeql-action/autobuild@v2
2023-01-31 13:25:37 +03:00
2023-01-31 14:04:30 +03:00
- name: Perform CodeQL Analysis
2023-01-31 13:25:37 +03:00
uses: github/codeql-action/analyze@v2