chore: scala-steward commit messages #115
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
test: | |
runs-on: ${{ matrix.OS }} | |
strategy: | |
matrix: | |
OS: [ "ubuntu-latest", "macos-latest", "windows-latest" ] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: restore cache | |
uses: coursier/cache-action@v6 | |
- name: setup scala-cli | |
uses: VirtusLab/[email protected] | |
- name: test jvm | |
run: scala-cli --power test . | |
- name: test js | |
run: scala-cli --power test --js . | |
- name: test native | |
run: scala-cli --power test --native . | |
format: | |
runs-on: "ubuntu-latest" | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: coursier/cache-action@v6 | |
- uses: VirtusLab/[email protected] | |
- name: Scalafmt check | |
run: | | |
scala-cli fmt --check . || ( | |
echo "To format code run" | |
echo " scala-cli fmt ." | |
exit 1 | |
) |