Skip to content

Commit

Permalink
Better CI workflows by spliting jobs
Browse files Browse the repository at this point in the history
- Split test and format jobs
- Remove compile task
  • Loading branch information
lenguyenthanh committed Dec 9, 2023
1 parent 48242db commit 7b5c1fc
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,27 @@ on:
pull_request:
branches: ['**']
push:
branches: ['**']
branches: master

jobs:
openjdk21:
test:
runs-on: ubuntu-latest
container: sbtscala/scala-sbt:eclipse-temurin-jammy-21.0.1_12_1.9.7_3.3.1
steps:

- name: Checkout current branch
uses: actions/checkout@v4

- name: Compile
run: sbt compile

- name: Test
run: sbt test

format:
runs-on: ubuntu-latest
container: sbtscala/scala-sbt:eclipse-temurin-jammy-21.0.1_12_1.9.7_3.3.1
steps:

- name: Checkout current branch
uses: actions/checkout@v4

- name: Check Formatting
run: sbt scalafmtCheckAll

0 comments on commit 7b5c1fc

Please sign in to comment.