From 02bc7518386422e452a13857612884a8ec1435be Mon Sep 17 00:00:00 2001 From: Victor Hugo Borja Date: Fri, 9 Oct 2020 23:22:18 -0500 Subject: [PATCH] Run CI tests on GithubActions --- .github/workflows/workflow.yml | 40 ++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/workflow.yml diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml new file mode 100644 index 0000000..85757ec --- /dev/null +++ b/.github/workflows/workflow.yml @@ -0,0 +1,40 @@ +name: Main workflow + +on: + push: + paths-ignore: + - "**.md" + pull_request: + paths-ignore: + - "**.md" + schedule: + - cron: "0 0 * * 5" + +jobs: + test: + strategy: + matrix: + os: [ubuntu-latest] + + runs-on: ${{ matrix.os }} + + steps: + - uses: actions/checkout@v2 + - uses: coursier/cache-action@v3 + - run: | + curl -o cs -qL https://git.io/coursier-cli + sh cs launch sbt -- test + + scalafmt: + strategy: + matrix: + os: [ubuntu-latest] + + runs-on: ${{ matrix.os }} + + steps: + - uses: actions/checkout@v2 + - uses: coursier/cache-action@v3 + - run: | + curl -o cs -qL https://git.io/coursier-cli + sh cs launch scalafmt -- --mode diff --diff-branch master --test