From 168b2615988c8ecd7bd6945119ce9a061d59bf12 Mon Sep 17 00:00:00 2001 From: Ryan Beck-Buysse Date: Fri, 7 May 2021 13:33:15 -0500 Subject: [PATCH] Add GitHub Actions workflow files The Splinter project is working to transition from Travis CI to GitHub Actions. Signed-off-by: Ryan Beck-Buysse --- .github/workflows/ci.yaml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 000000000..41c1a75ee --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,39 @@ +# Copyright 2021 Cargill Incorporated +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +name: CI + +on: [push, pull_request] + +env: + CARGO_TERM_COLOR: always + ISOLATION_ID: latest + +jobs: + + run_lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Lint SaplingJS + run: docker-compose -f docker/compose/run-lint.yaml up --abort-on-container-exit lint-saplingjs + + unit_test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Test SaplingJS + run: docker-compose -f tests/test-splinter.yaml up --abort-on-container-exit unit-test-saplingjs