aqua/.github/workflows/test_branch.yml

59 lines
1.5 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
cd aqua-playground
npm i
cd ..
2021-06-15 17:44:55 +00:00
sbt "cli/run -i aqua-playground/aqua/examples -o aqua-playground/src/compiled/examples -m aqua-playground/node_modules -c \"uniqueConst = 1\" -c \"anotherConst = \\\"ab\\\"\""
cd aqua-playground
2021-05-27 09:45:15 +00:00
npm run examples