[AND-11] Expose flagUser/unflagUser on MessageListController and MessageListViewModels. #15464
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: Pull request CI checks | |
on: [pull_request] | |
env: | |
BUILD_CACHE_AWS_REGION: ${{ secrets.BUILD_CACHE_AWS_REGION }} | |
BUILD_CACHE_AWS_BUCKET: ${{ secrets.BUILD_CACHE_AWS_BUCKET }} | |
BUILD_CACHE_AWS_ACCESS_KEY_ID: ${{ secrets.BUILD_CACHE_AWS_ACCESS_KEY_ID }} | |
BUILD_CACHE_AWS_SECRET_KEY: ${{ secrets.BUILD_CACHE_AWS_SECRET_KEY }} | |
concurrency: | |
group: ${{ github.head_ref }} | |
cancel-in-progress: true | |
jobs: | |
lint: | |
name: ktlint | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3.1.0 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3.6.0 | |
with: | |
distribution: adopt | |
java-version: 17 | |
- uses: ./.github/actions/gradle-cache | |
with: | |
key-prefix: gradle-lint | |
- name: spotless | |
run: ./gradlew spotlessCheck --scan | |
- name: Detekt | |
if: always() | |
run: ./gradlew detekt | |
vale: | |
name: Vale doc linter | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: errata-ai/vale-action@reviewdog | |
with: | |
# added, diff_context, file, nofilter | |
filter_mode: nofilter | |
# github-pr-check, github-pr-review, github-check | |
reporter: github-pr-check | |
fail_on_error: true | |
files: docusaurus | |
version: "2.30.0" | |
env: | |
# Required, set by GitHub actions automatically: | |
# https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
api_check: | |
name: API check | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3.1.0 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3.6.0 | |
with: | |
distribution: adopt | |
java-version: 17 | |
- uses: ./.github/actions/gradle-cache | |
with: | |
key-prefix: gradle-APICheck | |
- name: API check | |
run: ./gradlew apiCheck --scan | |
debug_build: | |
name: Debug build | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3.1.0 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3.6.0 | |
with: | |
distribution: adopt | |
java-version: 17 | |
- uses: ./.github/actions/gradle-cache | |
with: | |
key-prefix: gradle-build | |
- name: Build | |
run: ./gradlew assembleDebug --scan | |
test: | |
name: Unit tests | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3.1.0 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3.6.0 | |
with: | |
distribution: adopt | |
java-version: 17 | |
- uses: ./.github/actions/gradle-cache | |
with: | |
key-prefix: gradle-test | |
- name: Unit tests | |
run: ./scripts/ci-unit-tests.sh | |
- name: Upload testDebugUnitTest results | |
uses: actions/upload-artifact@v3.1.0 | |
if: failure() | |
with: | |
name: testDebugUnitTest | |
path: ./**/build/reports/tests/testDebugUnitTest | |
rubocop: | |
name: Rubocop | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4.2.2 | |
- uses: ./.github/actions/ruby-cache | |
- run: bundle exec fastlane rubocop |