Skip to content

Commit

Permalink
Improving github action flow
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulbhatia023 committed Aug 25, 2023
1 parent a5f79e5 commit 02df326
Showing 1 changed file with 24 additions and 7 deletions.
31 changes: 24 additions & 7 deletions .github/workflows/code-merge-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,40 @@ jobs:
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: 'sbt'
java-version: "11"
distribution: "temurin"
cache: "sbt"
- name: Scalafmt Check
run: sbt scalafmtCheckAll
scalafix-check:
name: Scalafix Check
needs: check-code-formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: "11"
distribution: "temurin"
cache: "sbt"
- name: Run Scalafix Check
run: sbt "scalafixAll --check"
env:
GITHUB_USERNAME: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run-unit-tests:
name: Run Unit Tests
needs: check-code-formatting
needs: scalafix-check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: 'sbt'
java-version: "11"
distribution: "temurin"
cache: "sbt"
- name: Run Unit Tests
run: sbt test
env:
Expand Down

0 comments on commit 02df326

Please sign in to comment.