-
Notifications
You must be signed in to change notification settings - Fork 285
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(github): migrate to Github Actions for CI
Changes: 1. Deletes the .travis.yml file meaning that Travis will no longer be our CI runner 2. Adds the .github/workflows/ci.yml file meaning that Github Actions is stepping in as the new Travis from now on. 3. Starts skipping a couple of tests which have issues with passing temporarily due to pending pull requests in the review queue. Docker is not supported on macOS and there is no end in sight to this problem either: https://gh.neting.ccmunity/t/why-is-docker-not-installed-on-macos/17017 Windows has a path syntax issue in the npm script responsible for generating the API clients so for now that is disabled as well as macOS. We expect to be able to solve this in the near future though (unlike what is happening with macOS...) Resolves #419 Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
- Loading branch information
Showing
4 changed files
with
85 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
name: Cactus CI Github Workflow | ||
|
||
# Triggers the workflow on pull request events | ||
on: [pull_request] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ${{ matrix.os }} | ||
continue-on-error: ${{ matrix.experimental }} | ||
|
||
strategy: | ||
fail-fast: true | ||
max-parallel: 16 | ||
matrix: | ||
os: [ubuntu-20.04, ubuntu-18.04] | ||
node-version: [v12.13.0, v14.15.1] | ||
experimental: [false] | ||
# include: | ||
# | ||
# # FIXME macOS does not work due to lack of docker support in GHA. | ||
# https://gh.neting.ccmunity/t/why-is-docker-not-installed-on-macos/17017 | ||
# - os: macos-11.0 # macOS Big Sur 11.0 | ||
# node-version: v12.13.0 | ||
# experimental: true | ||
# - os: macos-10.15 # macOS Catalina 10.15 | ||
# node-version: v12.13.0 | ||
# experimental: true | ||
# | ||
# # FIXME | ||
# https://github.com/hyperledger/cactus/issues/171 | ||
# - os: windows-2019 # Windows Server 2019 | ||
# node-version: v12.13.0 | ||
# experimental: true | ||
|
||
steps: | ||
# FIXME: These do not work on mac OS as of 2020-12-09 | ||
# https://gh.neting.ccmunity/t/why-is-docker-not-installed-on-macos/17017 | ||
# - name: Set up QEMU (ARM64 docker images once we are ready) | ||
# uses: docker/setup-qemu-action@v1.0.1 | ||
|
||
# - name: Set up Docker Buildx (ARM64 docker images once we are ready) | ||
# uses: docker/setup-buildx-action@v1.0.3 | ||
|
||
- name: Set up JDK 8 (OpenAPI generator needs it) | ||
uses: actions/setup-java@v1.4.3 | ||
with: | ||
java-version: '8.0.275' # The JDK version to make available on the path. | ||
java-package: jdk # (jre, jdk, or jdk+fx) - defaults to jdk | ||
architecture: x64 # (x64 or x86) - defaults to x64 | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2.1.2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- uses: actions/checkout@v2.3.4 | ||
|
||
- run: npm ci | ||
- run: ./node_modules/.bin/lerna clean --yes | ||
- run: ./node_modules/.bin/lerna bootstrap | ||
- run: npm run build:dev:backend | ||
- run: npm run test:unit -- --bail | ||
- run: npm run test:integration -- --bail |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters