Skip to content

[Oztechan/TraceFit#40] Enable and fix SwiftLint issues #70

[Oztechan/TraceFit#40] Enable and fix SwiftLint issues

[Oztechan/TraceFit#40] Enable and fix SwiftLint issues #70

Workflow file for this run

name: TraceFit CI
on:
push:
branches:
- develop
pull_request:
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
CI: true
jobs:
GradleBuild:
runs-on: macos-13
outputs:
status: ${{ steps.status.outputs.status }}
steps:
- name: Clone Repo
uses: actions/[email protected]
with:
submodules: 'recursive'
fetch-depth: 0
- name: Set up JDK 17
uses: actions/[email protected]
with:
java-version: 17
distribution: 'temurin'
- name: Assemble
uses: gradle/[email protected]
with:
arguments: assemble
- name: Cancel other jobs if this fails
if: failure()
uses: andymckay/[email protected]
- name: Set Job Status
id: status
run: echo "status=success" >> $GITHUB_OUTPUT
Quality:
runs-on: macos-13
outputs:
status: ${{ steps.status.outputs.status }}
steps:
- name: Clone Repo
uses: actions/[email protected]
with:
submodules: 'recursive'
- name: Set up JDK 17
uses: actions/[email protected]
with:
java-version: 17
distribution: 'temurin'
- name: Run Quality Jobs
uses: gradle/[email protected]
with:
arguments: check koverMergedXmlReport --parallel
- name: Upload Coverage Report
uses: actions/[email protected]
with:
name: coverageReport
path: build/reports/kover/merged/xml/report.xml
- name: Cancel other jobs if this fails
if: failure()
uses: andymckay/[email protected]
- name: Set Job Status
id: status
run: echo "status=success" >> $GITHUB_OUTPUT
Notify:
runs-on: ubuntu-latest
needs: [ GradleBuild, Quality]
if: always()
steps:
- name: Notify slack fail
if: false == (needs.GradleBuild.outputs.status == 'success') ||
false == (needs.Quality.outputs.status == 'success')
uses: voxmedia/[email protected]
with:
channel: tracefit-github
status: FAILED
color: danger