-
Notifications
You must be signed in to change notification settings - Fork 19
34 lines (33 loc) · 1.01 KB
/
Copy pathci.yml
File metadata and controls
34 lines (33 loc) · 1.01 KB
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
name: Build & Test
on: [push, pull_request]
jobs:
test:
strategy:
fail-fast: false
matrix:
parallelism: [2]
mruby_version: ["master", "1.4.0"]
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- name: Download mruby source
env:
MRUBY_VERSION: ${{ matrix.mruby_version }}
run: |
if [ "$MRUBY_VERSION" = "master" ] ; then
git clone --depth 1 "https://github.com/mruby/mruby.git" mruby-$MRUBY_VERSION;
else
curl -L "https://github.com/mruby/mruby/archive/$MRUBY_VERSION.tar.gz" > mruby-$MRUBY_VERSION.tar.gz;
tar xf mruby-$MRUBY_VERSION.tar.gz;
fi
- name: Build and test
env:
MRUBY_VERSION: ${{ matrix.mruby_version }}
run: |
cd mruby-$MRUBY_VERSION
if [ "$MRUBY_VERSION" = "master" ] ; then
rake -m test:build && rake test:run
else
./minirake -v all test
fi