aqua/.github/workflows/test_branch.yml

57 lines
1.3 KiB
YAML
Raw Normal View History

2021-03-22 14:25:47 +00:00
name: "test"
on:
push:
branches-ignore:
2021-03-23 09:27:30 +00:00
- main
2021-03-22 14:25:47 +00:00
jobs:
test:
name: "sbt test"
runs-on: "ubuntu-latest"
steps:
- name: Checkout repository
uses: actions/checkout@v2
### Setup
2021-03-23 09:27:30 +00:00
- name: Cache SBT
uses: actions/cache@v2
with:
path: |
~/.ivy2/cache
~/.sbt
key: ${{ runner.os }}-sbt-${{ hashFiles('**/build.sbt') }}
2021-04-27 13:23:31 +00:00
- name: Cache npm
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
2021-03-23 09:27:30 +00:00
- name: Cache coursier
uses: actions/cache@v1
with:
path: ~/.cache/coursier
key: ${{ runner.OS }}-coursier-cache-${{ hashFiles('**/*.sbt') }}
restore-keys: |
${{ runner.OS }}-coursier-cache-${{ hashFiles('**/*.sbt') }}-
${{ runner.OS }}-coursier-cache-
2021-03-22 14:25:47 +00:00
- uses: olafurpg/setup-scala@v10
2021-04-27 13:23:31 +00:00
- name: Sbt test
run: |
sbt test
2021-03-22 14:25:47 +00:00
### Update & build
2021-04-27 13:23:31 +00:00
- name: Integration test
run: |
git clone https://github.com/fluencelabs/aqua-playground.git
sbt "cli/run -i aqua-playground/aqua -o aqua-playground/src/compiled"
cd aqua-playground
npm i
npm run cli