diff --git a/.github/workflows/Handoff.yml b/.github/workflows/Handoff.yml index 05793f8cb..0bd3ea4fb 100644 --- a/.github/workflows/Handoff.yml +++ b/.github/workflows/Handoff.yml @@ -54,3 +54,7 @@ jobs: needs: handoff if: contains(needs.handoff.outputs.category, 'YAML') uses: ./.github/workflows/YAMLlint.yml + test: + needs: handoff + if: contains(needs.handoff.outputs.category, 'Ruby') + uses: ./.github/workflows/Unit-Test.yml diff --git a/.github/workflows/Unit-Test.yml b/.github/workflows/Unit-Test.yml new file mode 100644 index 000000000..3e129a334 --- /dev/null +++ b/.github/workflows/Unit-Test.yml @@ -0,0 +1,23 @@ +name: Run Unit Tests on PR + +on: + pull_request: + branches: [master] +jobs: + generate: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Dump github context + run: echo "$GITHUB_CONTEXT" + shell: bash + env: + GITHUB_CONTEXT: ${{ toJson(github) }} + - name: Unit Tests + run: | + sudo docker run -t satmandu/crewbuild:amd64 sudo -i -u chronos /bin/bash -c " + echo \"CREW_REPO is ${{ github.actor }}\" && \ + echo \"CREW_BRANCH is ${{ github.head_ref }}\" && \ + CREW_REPO=https://github.com/${{ github.actor }}/chromebrew.git CREW_BRANCH=${{ github.head_ref }} crew update && \ + yes | crew upgrade && \ + yes | crew install vim" diff --git a/lib/const.rb b/lib/const.rb index d40a787ef..2cb6c1a12 100644 --- a/lib/const.rb +++ b/lib/const.rb @@ -1,6 +1,6 @@ # lib/const.rb # Defines common constants used in different parts of crew -CREW_VERSION = '1.38.9' +CREW_VERSION = '1.38.10' # kernel architecture KERN_ARCH = `uname -m`.chomp