Skip to content

Commit

Permalink
Migrate CI/CD to Actions [part 1] (#28)
Browse files Browse the repository at this point in the history
* chore(ci): test build node workflow

* chore(ci): initial build/test pipeline

* chore(ci): on pull-request

* chore(ci): fix typo on pull_request

* chore(ci): fix yml syntax by incl. build object in jobs

* chore(ci): use sudo for apt

* chore(ci): named steps

* chore(ci): no apt upgrade cmd

* chore(ci): downgrade to jdk 11

* chore(ci): upgrade to jdk 15

* chore(ci): add info logs to build
  • Loading branch information
adamstaveley authored Jun 23, 2022
1 parent 747f933 commit 72c8f17
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build and Test Node

on:
pull_request:
branches:
- develop
- master

jobs:
build:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v3

- name: Install ganache
run: |
sudo apt-get update
sudo apt-get install -y npm
sudo npm i -g ganache-cli
ganache-cli -m "candy maple cake sugar pudding cream honey rich smooth crumble sweet treat" --port 8544 --accounts 20 --networkId=9 --gasLimit=10000000 > /dev/null &
- name: Setup JDK/Gradle
uses: actions/setup-java@v3
with:
distribution: 'corretto'
java-version: '15'
cache: 'gradle'

- name: Build
run: ./gradlew build --no-daemon --info

0 comments on commit 72c8f17

Please sign in to comment.