Skip to content

Commit

Permalink
feat(ci): Add some basic tests to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
timniederhausen committed Jul 10, 2024
1 parent b50bb91 commit 7ddcd4e
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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 << 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 > DEPS
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
Empty file modified gclient
100644 → 100755
Empty file.
Empty file modified gclient_completion.sh
100644 → 100755
Empty file.

0 comments on commit 7ddcd4e

Please sign in to comment.