forked from wasmerio/wasmer-java
-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (34 loc) · 946 Bytes
/
test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Build and Test
on: [push]
jobs:
# The `test` job.
test:
name: Test
strategy:
matrix:
# The job runs on 3 different OS.
os: [ubuntu-latest, macos-13, windows-latest]
# The job runs on different Java versions (LTS).
java: [21]
# As soon as one job fails in the matrix, all the other
# in-progress jobs are canceled.
fail-fast: true
runs-on: ${{ matrix.os }}
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Set up Java ${{ matrix.version }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
default: true
override: true
- name: Run all the tests
shell: bash
run: |
export PATH="$HOME/.cargo/bin:$PATH"
make test