Merge pull request #46 from adpi2/updates #84
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: Test examples | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
jobs: | |
test: | |
name: Test examples | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: coursier/[email protected] | |
- name: Setup Scala CLI | |
uses: VirtusLab/scala-cli-setup@main | |
- name: Run changelog tests | |
run: scala-cli test changelog | |
- name: Check changelog compliance | |
run: scala-cli changelog | |
- name: Run cross-platform tests | |
run: scala-cli test tests/CrossPlatform.test.scala | |
- name: Compile and run examples | |
run: | | |
cd examples | |
for file in *.sc | |
do | |
scala-cli "$file" | |
done | |
- name: Compile and test examples | |
run: | | |
cd examples | |
for file in *.test.scala | |
do | |
scala-cli test "$file" | |
done |