mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-25 23:14:18 +03:00
d65effe8e0
Bumps the github-actions group with 2 updates: [actions/upload-artifact](https://github.com/actions/upload-artifact) and [github/codeql-action](https://github.com/github/codeql-action). Updates `actions/upload-artifact` from 3 to 4 - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/v3...v4) Updates `github/codeql-action` from 2 to 3 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/github/codeql-action/compare/v2...v3) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: github/codeql-action dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions ... Signed-off-by: dependabot[bot] <support@github.com>
82 lines
1.9 KiB
YAML
82 lines
1.9 KiB
YAML
name: "CodeQL"
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- "android/**"
|
|
- "helper/**"
|
|
pull_request:
|
|
paths:
|
|
- "android/**"
|
|
- "helper/**"
|
|
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:
|
|
language: [ 'python', 'kotlin' ]
|
|
|
|
steps:
|
|
- name: Initialize CodeQL
|
|
uses: github/codeql-action/init@v3
|
|
with:
|
|
languages: ${{ matrix.language }}
|
|
setup-python-dependencies: false
|
|
|
|
- name: set up JDK 17
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
distribution: 'temurin'
|
|
java-version: '17'
|
|
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
path: 'app'
|
|
|
|
- name: Read variables from repo
|
|
run: cat .github/workflows/env >> $GITHUB_ENV
|
|
working-directory: ./app
|
|
|
|
- name: Install Flutter
|
|
uses: subosito/flutter-action@v2
|
|
with:
|
|
channel: 'stable'
|
|
flutter-version: ${{ env.FLUTTER }}
|
|
- run: |
|
|
flutter config
|
|
flutter --version
|
|
|
|
- name: Run flutter tests
|
|
run: |
|
|
flutter test
|
|
flutter analyze
|
|
working-directory: ./app
|
|
|
|
- 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
|
|
|
|
|
|
- if: matrix.language == 'python'
|
|
name: autobuild
|
|
uses: github/codeql-action/autobuild@v3
|
|
|
|
- name: Perform CodeQL Analysis
|
|
uses: github/codeql-action/analyze@v3
|