Skip to content

Commit f83a495

Browse files
committed
Attempt to use github CI
1 parent 65ddb42 commit f83a495

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

.github/workflows/ant.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Java CI
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v1
12+
- name: Set up JDK 11
13+
uses: actions/setup-java@v1
14+
with:
15+
java-version: 11
16+
- name: Install and run ipfs
17+
run: install-run-ipfs.sh
18+
- name: Build with Ant
19+
run: ant -noinput -buildfile build.xml dist
20+
- name: Run tests
21+
timeout-minutes: 10
22+
run: ant -noinput -buildfile build.xml test

install-run-ipfs.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#! /bin/sh
2+
wget https://dist.ipfs.io/go-ipfs/v0.5.0/go-ipfs_v0.5.0_linux-amd64.tar.gz -O /tmp/go-ipfs_linux-amd64.tar.gz
3+
tar -xvf /tmp/go-ipfs_linux-amd64.tar.gz
4+
export PATH=$PATH:$PWD/go-ipfs/
5+
ipfs init
6+
ipfs daemon --enable-pubsub-experiment &

0 commit comments

Comments
 (0)