Skip to content
This repository has been archived by the owner on Aug 30, 2022. It is now read-only.

[1.9.x] Test forked PR #439

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .cicd/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ set -eo pipefail
. ./.cicd/helpers/general.sh
. ./.cicd/helpers/dependency-info.sh
mkdir -p $BUILD_DIR
echo "Test."
DOCKER_IMAGE=${DOCKER_IMAGE:-eosio/ci-contracts-builder:base-ubuntu-18.04-$EOSIO_COMMIT}
if [[ "$BUILDKITE" == 'true' ]]; then
buildkite-agent meta-data set cdt-url "$CDT_URL"
Expand Down
3 changes: 3 additions & 0 deletions .cicd/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ if [[ "$BUILDKITE" == 'true' ]]; then
CDT_URL="$(buildkite-agent meta-data get cdt-url)"
CDT_VERSION="$(buildkite-agent meta-data get cdt-version)"
DOCKER_IMAGE="$(buildkite-agent meta-data get docker-image)"
else # Actions
. ./.cicd/helpers/dependency-info.sh
DOCKER_IMAGE=${DOCKER_IMAGE:-eosio/ci-contracts-builder:base-ubuntu-18.04-$EOSIO_COMMIT}
fi
ARGS=${ARGS:-"--rm -v $(pwd):$MOUNTED_DIR"}
CDT_COMMANDS="dpkg -i $MOUNTED_DIR/eosio.cdt.deb && export PATH=/usr/opt/eosio.cdt/$CDT_VERSION/bin:\\\$PATH"
Expand Down
48 changes: 48 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Pull Request
on: [pull_request]

jobs:
start-job:
name: Start Job
runs-on: ubuntu-latest
steps:
- name: Start Job.
run: echo "PR created. Builds will be triggered here for forked PRs or Buildkite for internal PRs."


ubuntu-1804-build:
if: github.event.pull_request.base.repo.id != github.event.pull_request.head.repo.id
name: Ubuntu 18.04 | Build
runs-on: ubuntu-latest
needs: start-job
steps:
- name: Checkout
uses: actions/checkout@50fbc622fc4ef5163becd7fab6573eac35f8462e
with:
submodules: recursive
- name: Build
run: |
./.cicd/build.sh
tar -pczf build.tar.gz build
- name: Upload Build Artifact
uses: actions/upload-artifact@v1
with:
name: ubuntu-1804-build
path: build.tar.gz
ubuntu-1804-parallel-test:
name: Ubuntu 18.04 | Unit Test
runs-on: ubuntu-latest
needs: ubuntu-1804-build
steps:
- name: Checkout
uses: actions/checkout@50fbc622fc4ef5163becd7fab6573eac35f8462e
with:
submodules: recursive
- name: Download Build Artifact
uses: actions/download-artifact@v1
with:
name: ubuntu-1804-build
- name: Parallel Test
run: |
tar -xzf ubuntu-1804-build/build.tar.gz
./.cicd/test.sh
13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.