aqua/.github/workflows/test_branch.yml

65 lines
1.6 KiB
YAML
Raw Normal View History

2021-03-22 17:25:47 +03:00
name: "test"
on:
push:
branches-ignore:
2021-03-23 12:27:30 +03:00
- main
2021-03-22 17:25:47 +03:00
jobs:
test:
name: "sbt test"
runs-on: "ubuntu-latest"
steps:
- name: Checkout repository
uses: actions/checkout@v2
### Setup
2021-03-23 12:27:30 +03:00
- name: Cache SBT
uses: actions/cache@v2
with:
path: |
~/.ivy2/cache
~/.sbt
key: ${{ runner.os }}-sbt-${{ hashFiles('**/build.sbt') }}
2021-04-27 16:23:31 +03: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 12:27:30 +03: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 17:25:47 +03:00
- uses: olafurpg/setup-scala@v10
2021-04-27 16:23:31 +03:00
- name: Sbt test
run: |
sbt test
2021-03-22 17:25:47 +03:00
### Update & build
2021-09-07 11:09:48 +03:00
- name: Integration test
run: |
git clone https://github.com/fluencelabs/aqua-playground.git
2021-09-07 11:09:48 +03:00
sbt "cliJS/fastOptJS"
rm -rf aqua-playground/src/compiled/examples/*
2022-08-01 22:20:45 +03:00
mv cli/.js/target/scala-3.1.3/cli-fastopt.js npm/aqua.js
2021-10-13 11:10:10 +03:00
cd npm
npm i
npm run build
cd ../aqua-playground
npm i --save-dev ../npm
npm i
2021-10-13 11:10:10 +03:00
cd ../aqua-playground
npm run compile-aqua -- -c "UNIQUE_CONST = 1" -c "ANOTHER_CONST = \"ab\""
2021-09-07 11:09:48 +03:00
npm run examples