Run tests for core_language in CI
@@ -30,6 +30,10 @@ jobs:
- run: cargo test
- run: cargo build --release
- run: target/release/gleam --version
+ - uses: actions/upload-artifact@v1
+ with:
+ name: gleam
+ path: target/release/gleam
build_compiler_macos:
needs: rustfmt
@@ -64,3 +68,26 @@ jobs:
- run: cargo test
- run: cargo build --release
- run: target/release/gleam --version
+
+ test_core_language:
+ needs: build_compiler_linux
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2.0.0
+ - uses: gleam-lang/setup-erlang@v1.0.0
+ with:
+ otp-version: 22.1
+ - uses: actions/download-artifact@v1
+ with:
+ name: gleam
+ path: ./test/core_language
+ # Artifacts remove permissions
+ - name: Setup gleam compiler
+ run: |
+ chmod +x ./gleam
+ sed -i 's/cargo run --/.\/gleam/' rebar.config
+ working-directory: ./test/core_language
+ - run: rebar3 install_deps
+ working-directory: ./test/core_language
+ - run: rebar3 eunit
+ working-directory: ./test/core_language
