Files
starter-workflows/ci/scala.yml
T

35 lines
878 B
YAML
Raw Normal View History

2022-10-13 13:08:31 -07:00
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
2019-08-20 15:12:26 +01:00
name: Scala CI
2020-02-12 13:26:01 -05:00
on:
push:
2020-07-13 12:12:41 -07:00
branches: [ $default-branch ]
2020-02-12 13:26:01 -05:00
pull_request:
2020-07-13 12:12:41 -07:00
branches: [ $default-branch ]
2019-08-20 15:12:26 +01:00
2022-10-13 13:01:48 -07:00
permissions:
contents: read
2019-08-20 15:12:26 +01:00
jobs:
build:
2019-10-16 12:40:14 -07:00
2019-08-20 15:12:26 +01:00
runs-on: ubuntu-latest
2019-10-16 12:40:14 -07:00
2019-08-20 15:12:26 +01:00
steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v4
2019-09-09 11:12:23 +01:00
with:
java-version: '11'
2022-10-13 13:01:48 -07:00
distribution: 'temurin'
cache: 'sbt'
2019-08-20 15:12:26 +01:00
- name: Run tests
run: sbt test
2022-10-24 15:24:40 -07:00
# Optional: This step uploads information to the GitHub dependency graph and unblocking Dependabot alerts for the repository
2022-10-13 13:01:48 -07:00
- name: Upload dependency graph
2022-10-24 15:24:40 -07:00
uses: scalacenter/sbt-dependency-submission@ab086b50c947c9774b70f39fc7f6e20ca2706c91