Skip to content

Merge pull request #35 from scala/bump-libraries-versions #67

Merge pull request #35 from scala/bump-libraries-versions

Merge pull request #35 from scala/bump-libraries-versions #67

Workflow file for this run

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@v3
with:
fetch-depth: 0
- uses: coursier/[email protected]
- name: Setup Scala CLI
uses: VirtusLab/scala-cli-setup@main
- name: Test changelog and dependency tree semver compliance
run: |
scala-cli checks -- --module-name toolkit --file Toolkit.scala --skip js
scala-cli checks -- --module-name toolkit --file Toolkit.js.scala --skip jvm --skip native
scala-cli checks -- --module-name toolkit-test --file ToolkitTest.scala --module-dep toolkit
- name: Run test examples
run: |
cd examples
for file in *.sc
do
scala-cli "$file"
done
- name: Run examples of tests
run: |
cd examples
for file in *.test.scala
do
scala-cli test "$file"
done
- name: Run checks tests
run: scala-cli test checks