From 76d4abe924dd424f623512b9aebd14b477fa48e9 Mon Sep 17 00:00:00 2001 From: Tim Niederhausen Date: Wed, 10 Jul 2024 20:15:23 +0200 Subject: [PATCH] feat(ci): Add some basic tests to CI --- .github/workflows/ci.yml | 62 ++++++++++++++++++++++++++++++++++++++++ gclient | 0 gclient_completion.sh | 0 3 files changed, 62 insertions(+) create mode 100644 .github/workflows/ci.yml mode change 100644 => 100755 gclient mode change 100644 => 100755 gclient_completion.sh diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..51a0deb --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,62 @@ +name: CI + +on: + pull_request: + branches: + - master + - develop + - feature/** + push: + branches: + - master + - develop + - feature/** + tags: + - 'v*' + workflow_dispatch: + +concurrency: + group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }} + cancel-in-progress: true + +jobs: + git-deps-posix: + name: git deps + continue-on-error: false + + runs-on: ubuntu-latest + + steps: + - name: checkout + uses: actions/checkout@v4 + + - name: Setup test DEPS + run: | + cat > DEPS << EOF + vars = { + 'github_gnified': 'https://github.com/gnified', + } + deps = { + 'external/boringssl': Var('github_gnified') + '/boringssl.git@d09438328356b2fff277029d5fe7b375a22433c3', + 'external/cryptopp': 'https://github.com/weidai11/cryptopp.git@CRYPTOPP_8_5_0', + } + recursedeps = [ + 'external/boringssl', + ] + EOF + chmod +x gclient + ./gclient + + - name: Update DEPS + run: | + ./gclient sync --force --reset --delete_unversioned_trees + + - name: Test misc. commands + run: | + ./gclient root + ./gclient recurse -j1 git remote -v + + - name: Run tests + working-directory: ${{ github.workspace }}/build + run: | + ctest diff --git a/gclient b/gclient old mode 100644 new mode 100755 diff --git a/gclient_completion.sh b/gclient_completion.sh old mode 100644 new mode 100755