mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 15:37:56 -05:00
* wayland_protocols => 1.35 Signed-off-by: Satadru Pramanik <satadru@gmail.com> * mpv => 0.38 Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Enable debugging for /usr/local/etc/profile if in container, fixup glibc version detection Signed-off-by: Satadru Pramanik <satadru@gmail.com> * update crew_profile_base hash Signed-off-by: Satadru Pramanik <satadru@gmail.com> * update sha for crew_profile_base Signed-off-by: Satadru Pramanik <satadru@gmail.com> * update sha for crew_profile_base Signed-off-by: Satadru Pramanik <satadru@gmail.com> * minor tweaks to unit test, update hash for crew_profile_base Signed-off-by: Satadru Pramanik <satadru@gmail.com> --------- Signed-off-by: Satadru Pramanik <satadru@gmail.com>
32 lines
1.3 KiB
YAML
32 lines
1.3 KiB
YAML
---
|
|
name: Run Unit Tests on PR
|
|
on: workflow_call
|
|
jobs:
|
|
container_tests:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Dump github context
|
|
run: echo "$GITHUB_CONTEXT"
|
|
shell: bash
|
|
env:
|
|
GITHUB_CONTEXT: ${{ toJson(github) }}
|
|
- name: Unit Tests
|
|
run: |
|
|
sudo docker run --rm -t satmandu/crewbuild:amd64 sudo -i -u chronos /bin/bash -c "
|
|
echo \"CREW_REPO is ${{ github.event.pull_request.head.repo.clone_url }}\" && \
|
|
echo \"CREW_BRANCH is ${{ github.head_ref }}\" && \
|
|
CREW_REPO=${{ github.event.pull_request.head.repo.clone_url }} CREW_BRANCH=${{ github.head_ref }} crew update && \
|
|
yes | crew upgrade && \
|
|
yes | crew install vim && \
|
|
yes | crew remove vim && \
|
|
ruby ../tests/prop_test && \
|
|
ruby ../tests/buildsystem_test && \
|
|
ruby ../tests/commands/const.rb && \
|
|
ruby ../tests/commands/help.rb && \
|
|
ruby ../tests/commands/prop.rb && \
|
|
cd ~ && \
|
|
git clone --depth=1 https://github.com/chromebrew/chromebrew.git build_test && \
|
|
cd build_test && \
|
|
yes | CREW_CACHE_ENABLED=1 crew build -f packages/hello_world_chromebrew.rb"
|