You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by tv...@apache.org on 2021/08/27 10:07:17 UTC
[buildstream] 01/02: .github/workflows/ci.yml: Try dead simple CI
based on arrow repository
This is an automated email from the ASF dual-hosted git repository.
tvb pushed a commit to branch tristan/test-external-ci
in repository https://gitbox.apache.org/repos/asf/buildstream.git
commit 7051622e25d546ca4a51fbb2b52b5de57388c4f1
Author: Tristan van Berkom <tr...@codethink.co.uk>
AuthorDate: Fri Aug 27 13:50:22 2021 +0900
.github/workflows/ci.yml: Try dead simple CI based on arrow repository
---
.github/workflows/ci.yml | 128 +++++++----------------------------------------
1 file changed, 19 insertions(+), 109 deletions(-)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 63ec71f..a1aae84 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -1,121 +1,31 @@
-name: PR Checks
-# Run the CI if branches are pushed locally, allowing us to
-# run CI without the need of creating a pull request.
-#
-# Run the CI on pull requests only if they are from forked
-# repositories.
-#
+name: Test
+
on:
push:
- branches-ignore:
- - gh-pages
- - master
+ paths:
+ - '.github/workflows/ci.yml'
+ - 'src/buildstream/**'
pull_request:
- types: [assigned, opened, synchronize, reopened]
- branches:
- # Branches from forks have the form 'user:branch-name' so we only run
- # this job on pull_request events for branches that look like fork
- # branches. Without this we would end up running this job twice for non
- # forked PRs, once for the push and then once for opening the PR.
- - '**:**'
-
+ paths:
+ - '.github/workflows/ci.yml'
+ - 'src/buildstream/**'
-# Left to-do:
-# - coverage
-# - publishing docs to gh-pages
-# - persistent artifact cache
-# - overnight jobs
-# - wsl tasks (TODO: Check if GitHub's Windows runners allow WSL)
-#
-# New opportunities:
-# - run tests on mac (GitHub provides MacOS runners)
-# - standardize WSL tasks by using GitHub-provided runners
+concurrency:
+ group: ${{ github.repository }}-${{ github.ref }}-${{ github.workflow }}
+ cancel-in-progress: true
jobs:
- tests:
- runs-on: ubuntu-20.04
- continue-on-error: ${{ matrix.allow-failure || false }}
-
- strategy:
- fail-fast: false
- matrix:
-
- # The names here should map to a valid service defined in
- # "../compose/ci.docker-compose.yml"
- test-name:
- - debian-10
- - fedora-32
- - fedora-33
- - ubuntu-18.04
- - centos-7.7.1908
- - fedora-missing-deps
- - lint
- - mypy
-
- include:
- - test-name: plugins-master
- allow-failure: true
-
- steps:
- - name: Check out repository
- uses: actions/checkout@v2
- # BuildStream requires tags to be able to find its version.
- with:
- fetch-depth: 0
-
- - name: Run tests with Docker Compose
- run: |
- ${GITHUB_WORKSPACE}/.github/run-ci.sh ${{ matrix.test-name }}
-
- # Matrix of tests which run against remote services which we bring up adjacently
- service-tests:
- runs-on: ubuntu-20.04
- strategy:
- matrix:
-
- # The names here map to valid services defined in "../compose/ci.docker-compose.yml",
- # and they also map to corresponding filenames of services which are expected
- # to be run in the background
- test-name:
- - bst-artifact-server
- - buildbarn
- - buildgrid
-
- steps:
- - name: Check out repository
- uses: actions/checkout@v2
- # BuildStream requires tags to be able to find its version.
- with:
- fetch-depth: 0
-
- - name: Bring up the RE cluster
- run: |
- ${GITHUB_WORKSPACE}/.github/run-ci.sh --service ${{ matrix.test-name }}
-
- docs:
- runs-on: ubuntu-20.04
+ test:
+ name: Archery Unittests and Crossbow Check Config
+ runs-on: ubuntu-latest
+ timeout-minutes: 15
steps:
- - name: Check out repository
+ - name: Checkout BuildStream
uses: actions/checkout@v2
- # BuildStream requires tags to be able to find its version.
with:
fetch-depth: 0
-
- - name: Give `testuser` ownership of the source directory
- run: sudo chown -R 1000:1000 ${GITHUB_WORKSPACE}
-
- - name: Build documentation using Docker Compose
- run: |
- docker-compose \
- --env-file ${GITHUB_WORKSPACE}/.github/common.env \
- --file ${GITHUB_WORKSPACE}/.github/compose/ci.docker-compose.yml \
- run \
- docs
-
- - name: Upload artifacts
- uses: actions/upload-artifact@v2
- with:
- name: docs
- path: doc/build/html
+ - name: Echo some pony
+ shell: bash
+ run: echo "Pony"