Skip to content

Migrate PhotoTaskFragment to use TaskScreen Component #3126

Migrate PhotoTaskFragment to use TaskScreen Component

Migrate PhotoTaskFragment to use TaskScreen Component #3126

Workflow file for this run

# Copyright 2024 The Ground Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Setup JDK 17
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: 17
cache: 'gradle'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Assemble artifacts
run: ./gradlew assembleLocalDebug
- name: Run code quality checks
run: ./gradlew checkCode
- name: Run unit tests
run: ./gradlew testLocalDebugUnitTest
- name: Generate codecov report
run: ./gradlew jacocoLocalDebugUnitTestReport
- name: Upload coverage to Codecov
if: github.actor != 'dependabot[bot]'
uses: codecov/codecov-action@v6
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: "**/build/reports/jacoco/**/*.xml"
flags: service
fail_ci_if_error: false
instrumentation-tests:
needs: build
if: github.event_name == 'pull_request'
uses: ./.github/workflows/test-e2e.yml
secrets:
MAPS_API_KEY: ${{ secrets.MAPS_API_KEY }}
permissions:
contents: read